Resets the internal, static entity cache.
$ids: (optional) If specified, the cache is reset for the entities with the given ids only.
Overrides EntityStorageControllerInterface::resetCache
public function resetCache(array $ids = NULL) {
if ($this->cache && isset($ids)) {
foreach ($ids as $id) {
unset($this->entityCache[$id]);
}
}
else {
$this->entityCache = array();
}
}