We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef0ee76 commit 5dfc8dcCopy full SHA for 5dfc8dc
src/IslandoraUtils.php
@@ -4,6 +4,7 @@
4
5
use Drupal\context\ContextManager;
6
use Drupal\Component\Utility\Html;
7
+use Drupal\Core\Cache\Cache;
8
use Drupal\Core\Cache\CacheBackendInterface;
9
use Drupal\Core\Entity\ContentEntityInterface;
10
use Drupal\Core\Entity\EntityFieldManagerInterface;
@@ -306,7 +307,7 @@ public function getTermForUri($uri) {
306
307
$cid,
308
$term,
309
CacheBackendInterface::CACHE_PERMANENT,
- $term->getCacheTags()
310
+ Cache::mergeTags(array_merge($term->getCacheTags(), ['user:' . $this->currentUser->id()]))
311
);
312
313
return $term;
0 commit comments