Add hook_flush_caches support.