Fire event before cache is cleared to allow tasks to be performed before...

... hand

Signed-off-by: Ben James <in@benjam.es>