diff --git a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php index e12c906..21cb79f 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php @@ -621,7 +621,7 @@ protected function setPersistentCache($entities) { * @param \Drupal\Core\Entity\EntityInterface[] $entities */ protected function clearPersistentCache(array $entities = NULL) { - if ($this->entityType->isPersistentlyCacheable()) { + if (!$this->entityType->isPersistentlyCacheable()) { return; }