mirror of
https://github.com/werkraum-media/events.git
synced 2024-12-24 00:46:09 +01:00
Daniel Siepmann
0fc2668d17
There might be access to TSFE get_cache_timeout() prior rendering events. TYPO3 has a cache for timeout and won't re calculate again. We therefore need to clear the cache if timeout would change. That will lead to inconsistent cache information throughout a single request. But the final cache timeout of the page will be correct. Other parts might be longer, which probably is fine until they relate to the events. Relates: #10500
39 lines
780 B
Text
39 lines
780 B
Text
config {
|
|
cache_period = 86400
|
|
no_cache = 0
|
|
sendCacheHeaders = 1
|
|
}
|
|
|
|
page = PAGE
|
|
page {
|
|
10 = USER
|
|
10 {
|
|
// Simulates foreign access prior our rendering.
|
|
// TYPO3 has an internal cache in order to not recalculate timeout.
|
|
userFunc = Wrm\EventsExample\UserFunc->accessTsfeTimeout
|
|
}
|
|
|
|
20 < styles.content.get
|
|
|
|
30 = USER
|
|
30 {
|
|
// Simulates further long running rendering.
|
|
// In order to test that our ttl is calculated as expected.
|
|
userFunc = Wrm\EventsExample\UserFunc->sleep
|
|
userFunc {
|
|
sleep = 0
|
|
}
|
|
}
|
|
}
|
|
|
|
plugin.tx_events {
|
|
persistence {
|
|
storagePid = 2
|
|
}
|
|
|
|
settings {
|
|
sortByDate = start
|
|
sortOrder = ASC
|
|
start = 1660158000
|
|
}
|
|
}
|