1 entity.controller.inc public DefaultEntityController::resetCache(array $ids = NULL)

Implements EntityControllerInterface::resetCache().

Overrides EntityControllerInterface::resetCache

File

core/modules/entity/entity.controller.inc, line 217
Entity API controller classes and interface.

Class

DefaultEntityController
Defines a base entity controller class.

Code

public function resetCache(array $ids = NULL) {
  // Reset the persistent cache.
  if ($this->persistentCache) {
    if (!empty($ids)) {
      cache_clear_all($ids, 'cache_entity_' . $this->entityType);
    }
    else {
      // Force all cached entries to be deleted.
      cache_flush('cache_entity_' . $this->entityType);
    }
  }

  $this->resetStaticCache($ids);
}