diff --git a/src/IslandoraUtils.php b/src/IslandoraUtils.php index f5847a7a..fb61d8b3 100644 --- a/src/IslandoraUtils.php +++ b/src/IslandoraUtils.php @@ -4,6 +4,7 @@ namespace Drupal\islandora; use Drupal\context\ContextManager; use Drupal\Component\Utility\Html; +use Drupal\Core\Cache\Cache; use Drupal\Core\Cache\CacheBackendInterface; use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Entity\EntityFieldManagerInterface; @@ -306,7 +307,7 @@ class IslandoraUtils { $cid, $term, CacheBackendInterface::CACHE_PERMANENT, - $term->getCacheTags() + Cache::mergeTags(array_merge($term->getCacheTags(), ['user:' . $this->currentUser->id()])) ); return $term;