protected function ContentEntityStorageTrait::setPersistentCache in Multiversion 8
File
- src/
Entity/ Storage/ ContentEntityStorageTrait.php, line 583
Class
Namespace
Drupal\multiversion\Entity\StorageCode
protected function setPersistentCache($entities) {
if (!$this->entityType
->isPersistentlyCacheable()) {
return;
}
$ws = $this
->getWorkspaceId();
$cache_tags = [
$this->entityTypeId . '_values',
'entity_field_info',
'workspace_' . $ws,
];
foreach ($entities as $entity) {
$this->cacheBackend
->set($this
->buildCacheId($entity
->id()), $entity, CacheBackendInterface::CACHE_PERMANENT, $cache_tags);
}
}