| @@ 402-409 (lines=8) @@ | ||
| 399 | /** |
|
| 400 | * @see \eZ\Publish\SPI\Persistence\Content\Type\Handler::publish |
|
| 401 | */ |
|
| 402 | public function publish($typeId) |
|
| 403 | { |
|
| 404 | $this->logger->logCall(__METHOD__, array('type' => $typeId)); |
|
| 405 | $this->persistenceHandler->contentTypeHandler()->publish($typeId); |
|
| 406 | ||
| 407 | // Clear type cache, map cache, and content cache which contains fields. |
|
| 408 | $this->cache->invalidateTags(['type-'.$typeId, 'type-map', 'content-fields-type-'.$typeId]); |
|
| 409 | } |
|
| 410 | ||
| 411 | /** |
|
| 412 | * @see \eZ\Publish\SPI\Persistence\Content\Type\Handler::getSearchableFieldMap |
|
| @@ 205-211 (lines=7) @@ | ||
| 202 | /** |
|
| 203 | * @inheritdoc |
|
| 204 | */ |
|
| 205 | public function update(UpdateStruct $struct, $locationId) |
|
| 206 | { |
|
| 207 | $this->logger->logCall(__METHOD__, array('location' => $locationId, 'struct' => $struct)); |
|
| 208 | $this->persistenceHandler->locationHandler()->update($struct, $locationId); |
|
| 209 | ||
| 210 | $this->cache->invalidateTags(['location-'.$locationId]); |
|
| 211 | } |
|
| 212 | ||
| 213 | /** |
|
| 214 | * @inheritdoc |
|
| @@ 250-256 (lines=7) @@ | ||
| 247 | /** |
|
| 248 | * @inheritdoc |
|
| 249 | */ |
|
| 250 | public function setSectionForSubtree($locationId, $sectionId) |
|
| 251 | { |
|
| 252 | $this->logger->logCall(__METHOD__, array('location' => $locationId, 'section' => $sectionId)); |
|
| 253 | $this->persistenceHandler->locationHandler()->setSectionForSubtree($locationId, $sectionId); |
|
| 254 | ||
| 255 | $this->cache->invalidateTags(['location-path-'.$locationId]); |
|
| 256 | } |
|
| 257 | ||
| 258 | /** |
|
| 259 | * @inheritdoc |
|
| @@ 261-267 (lines=7) @@ | ||
| 258 | /** |
|
| 259 | * @inheritdoc |
|
| 260 | */ |
|
| 261 | public function changeMainLocation($contentId, $locationId) |
|
| 262 | { |
|
| 263 | $this->logger->logCall(__METHOD__, array('location' => $locationId, 'content' => $contentId)); |
|
| 264 | $this->persistenceHandler->locationHandler()->changeMainLocation($contentId, $locationId); |
|
| 265 | ||
| 266 | $this->cache->invalidateTags(['content-'.$contentId]); |
|
| 267 | } |
|
| 268 | ||
| 269 | /** |
|
| 270 | * Return relevant content and location tags so cache can be purged reliably. |
|