1 entity.module entity_flush_caches()

Implements hook_flush_caches().

File

core/modules/entity/entity.module, line 24
Entity API for handling entities like nodes or users.

Code

function entity_flush_caches() {
  $bins = array();

  $entities = entity_get_info();
  foreach ($entities as $type => $info) {
    if (isset($info['entity cache']) && $info['entity cache']) {
      $bins[] = 'cache_entity_' . $type;
    }
  }

  return $bins;
}