eZ/Publish/Core/Persistence/Cache/LocationHandler.php 1 location
|
@@ 287-289 (lines=3) @@
|
| 284 |
|
// @todo use a different content tag here and reflect on in other handlers to be able to clear only content(?) |
| 285 |
|
$tags[] = 'content-'.$location->contentId; |
| 286 |
|
$tags[] = 'location-'.$location->id; |
| 287 |
|
foreach (explode('/', trim($location->pathString, '/')) as $pathId) { |
| 288 |
|
$tags[] = 'location-path-'.$pathId; |
| 289 |
|
} |
| 290 |
|
|
| 291 |
|
return $tags; |
| 292 |
|
} |
eZ/Publish/Core/Persistence/Cache/ContentHandler.php 1 location
|
@@ 361-363 (lines=3) @@
|
| 358 |
|
$tags[] = 'location-'.$contentInfo->mainLocationId; |
| 359 |
|
|
| 360 |
|
$location = $this->persistenceHandler->locationHandler()->load($contentInfo->mainLocationId); |
| 361 |
|
foreach (explode('/', trim($location->pathString, '/')) as $pathId) { |
| 362 |
|
$tags[] = 'location-path-'.$pathId; |
| 363 |
|
} |
| 364 |
|
} |
| 365 |
|
|
| 366 |
|
return $tags; |