function helper_drush_cache_clear_entity in Helper 7
Clears entity-related caches.
1 string reference to 'helper_drush_cache_clear_entity'
- helper_drush_cache_clear in ./
helper.drush.inc - Implements hook_drush_cache_clear().
File
- ./
helper.drush.inc, line 39 - Drush integration for the Helper module.
Code
function helper_drush_cache_clear_entity() {
entity_info_cache_clear();
if (module_exists('entitycache')) {
$tables = module_invoke('entitycache', 'flush_caches');
foreach ($tables as $table) {
cache_clear_all('*', $table, TRUE);
}
}
}