on_cache_flush event

Added on_cache_flush event as suggested in 
https://github.com/concrete5/concrete5/pull/848