Fire an event before cache is cleared - patch for 4.2

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