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 | public function flushEventCache(int $eventUid = 0, int $eventPid = 0) |
||
79 | |||
80 | /** |
||
81 | * @return \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController |
||
82 | */ |
||
83 | protected function getTypoScriptFrontendController() |
||
87 | } |
||
88 |