|
|
|
@ -301,15 +301,14 @@ class IslandoraUtils {
|
|
|
|
|
if (!empty($results)) { |
|
|
|
|
$term = $this->entityTypeManager->getStorage('taxonomy_term') |
|
|
|
|
->load(reset($results)); |
|
|
|
|
$this->cache->set( |
|
|
|
|
$cid, |
|
|
|
|
$term, |
|
|
|
|
CacheBackendInterface::CACHE_PERMANENT, |
|
|
|
|
Cache::mergeTags(array_merge($term->getCacheTags(), ['user:' . $this->currentUser->id()])) |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$this->cache->set( |
|
|
|
|
$cid, |
|
|
|
|
$term, |
|
|
|
|
CacheBackendInterface::CACHE_PERMANENT, |
|
|
|
|
Cache::mergeTags(array_merge($term->getCacheTags(), ['user:' . $this->currentUser->id()])) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
return $term; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|