fixed local form cache update mechanism for when form is removed, deactivated or updated - still needs tests