public function GroupContentStorage::resetCache in Group 2.0.x
Same name and namespace in other branches
- 8 src/Entity/Storage/GroupContentStorage.php \Drupal\group\Entity\Storage\GroupContentStorage::resetCache()
Resets the entity cache.
Content entities have both an in-memory static cache and a persistent cache. Use this method to clear all caches. To clear just the in-memory cache, use the 'entity.memory_cache' service.
Parameters
array $ids: (optional) If specified, the cache is reset for the entities with the given ids only.
Overrides ContentEntityStorageBase::resetCache
File
- src/
Entity/ Storage/ GroupContentStorage.php, line 144
Class
- GroupContentStorage
- Defines the storage handler class for group content entities.
Namespace
Drupal\group\Entity\StorageCode
public function resetCache(array $ids = NULL) {
parent::resetCache($ids);
$this->loadByEntityCache = [];
}