CRM-13470: add hook_flush_caches

This is my first CiviCRM PR, so let me know if I'm not doing it right