eZ/Publish/Core/Persistence/Cache/ContentHandler.php 1 location
|
@@ 330-332 (lines=3) @@
|
| 327 |
|
$tags[] = 'location-' . $contentInfo->mainLocationId; |
| 328 |
|
|
| 329 |
|
$location = $this->persistenceHandler->locationHandler()->load($contentInfo->mainLocationId); |
| 330 |
|
foreach (explode('/', trim($location->pathString, '/')) as $pathId) { |
| 331 |
|
$tags[] = 'location-path-' . $pathId; |
| 332 |
|
} |
| 333 |
|
} |
| 334 |
|
|
| 335 |
|
return $tags; |
eZ/Publish/Core/Persistence/Cache/LocationHandler.php 1 location
|
@@ 287-290 (lines=4) @@
|
| 284 |
|
$tags[] = 'content-' . $location->contentId; |
| 285 |
|
$tags[] = 'location-' . $location->id; |
| 286 |
|
$tags[] = 'location-data-' . $location->id; |
| 287 |
|
foreach (explode('/', trim($location->pathString, '/')) as $pathId) { |
| 288 |
|
$tags[] = 'location-path-' . $pathId; |
| 289 |
|
$tags[] = 'location-path-data-' . $pathId; |
| 290 |
|
} |
| 291 |
|
|
| 292 |
|
return $tags; |
| 293 |
|
} |
eZ/Publish/Core/Persistence/Cache/UserHandler.php 1 location
|
@@ 294-298 (lines=5) @@
|
| 291 |
|
|
| 292 |
|
// To make sure tree operations affecting this can clear the permission cache |
| 293 |
|
$locations = $this->persistenceHandler->locationHandler()->loadLocationsByContent($groupId); |
| 294 |
|
foreach ($locations as $location) { |
| 295 |
|
foreach (explode('/', trim($location->pathString, '/')) as $pathId) { |
| 296 |
|
$cacheTags[] = 'location-path-' . $pathId; |
| 297 |
|
} |
| 298 |
|
} |
| 299 |
|
|
| 300 |
|
$cacheItem->tag($cacheTags); |
| 301 |
|
$this->cache->save($cacheItem); |