Update the cache before raising an event to a listener, not after