1 entity.controller.inc | public DefaultEntityController::resetStaticCache(array $ids = NULL) |
Implements EntityControllerInterface::resetStaticCache().
Overrides EntityControllerInterface::resetStaticCache
File
- core/
modules/ entity/ entity.controller.inc, line 235 - Entity API controller classes and interface.
Class
- DefaultEntityController
- Defines a base entity controller class.
Code
public function resetStaticCache(array $ids = NULL) {
// An empty array will not clear any cache, but NULL will clear everything.
if (isset($ids)) {
foreach ($ids as $id) {
unset($this->entityCache[$id]);
}
}
else {
$this->entityCache = array();
}
}