1 | <?php |
||
19 | class EventCacheService |
||
20 | { |
||
21 | /** |
||
22 | * Adds cache tags to page cache by event records. |
||
23 | * |
||
24 | * Following cache tags will be added to tsfe: |
||
25 | * "tx_sfeventmgt_uid_[event:uid]" |
||
26 | * |
||
27 | * @param array $eventRecords array with event records |
||
28 | * @return void |
||
29 | */ |
||
30 | public function addCacheTagsByEventRecords(array $eventRecords) |
||
41 | |||
42 | /** |
||
43 | * Adds page cache tags by used storagePages. |
||
44 | * This adds tags with the scheme tx_sfeventmgt_pid_[event:pid] |
||
45 | * |
||
46 | * @param \DERHANSEN\SfEventMgt\Domain\Model\Dto\EventDemand $demand |
||
47 | * @return void |
||
48 | */ |
||
49 | public function addPageCacheTagsByEventDemandObject(\DERHANSEN\SfEventMgt\Domain\Model\Dto\EventDemand $demand) |
||
62 | |||
63 | /** |
||
64 | * Flushes the page cache by event tags for the given event uid and pid |
||
65 | * |
||
66 | * @param int $eventUid |
||
67 | * @param int $eventPid |
||
68 | * @return void |
||
69 | */ |
||
70 | public function flushEventCache(int $eventUid = 0, int $eventPid = 0) |
||
86 | |||
87 | /** |
||
88 | * @return \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController |
||
89 | */ |
||
90 | protected function getTypoScriptFrontendController() |
||
94 | } |
||
95 |