1.20.x entity.module entity_flush_caches()

Implements hook_flush_caches().

File

modules/entity/entity.module, line 33
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;
}