| @@ 61-69 (lines=9) @@ | ||
| 58 | ]; |
|
| 59 | }; |
|
| 60 | ||
| 61 | $this->getContentTags = function (Content $content) { |
|
| 62 | $versionInfo = $content->versionInfo; |
|
| 63 | $tags = [ |
|
| 64 | 'content-fields-' . $versionInfo->contentInfo->id, |
|
| 65 | 'content-fields-type-' . $versionInfo->contentInfo->contentTypeId, |
|
| 66 | ]; |
|
| 67 | ||
| 68 | return $this->getCacheTagsForVersion($versionInfo, $tags); |
|
| 69 | }; |
|
| 70 | } |
|
| 71 | ||
| 72 | /** |
|
| @@ 486-495 (lines=10) @@ | ||
| 483 | return $getContentInfoTagsFn($contentInfo, $tags); |
|
| 484 | } |
|
| 485 | ||
| 486 | private function getCacheTagsForContent(Content $content): array |
|
| 487 | { |
|
| 488 | $versionInfo = $content->versionInfo; |
|
| 489 | $tags = [ |
|
| 490 | 'content-fields-' . $versionInfo->contentInfo->id, |
|
| 491 | 'content-fields-type-' . $versionInfo->contentInfo->contentTypeId, |
|
| 492 | ]; |
|
| 493 | ||
| 494 | return $this->getCacheTagsForVersion($versionInfo, $tags); |
|
| 495 | } |
|
| 496 | } |
|
| 497 | ||