Caching and sessions · Question 7 of 12
The start page (UID 1) shows teasers of news from the folder with UID 20. How is its cache cleared as soon as an editor saves a news record there?
1 answer is correct. Easy
Show answer
Answer
- D With page TSconfig on folder 20: TCEMAIN.clearCacheCmd = 1
Explanation
When saving, TYPO3 only clears the cache of the page or folder in which the record is stored. The page TSconfig TCEMAIN.clearCacheCmd on folder 20 lists additional pages whose cache is cleared as well, here the start page with TCEMAIN.clearCacheCmd = 1; several UIDs are separated by commas. The start page thus stays cached and is still up to date after every change. config.cache_period = 0, by contrast, would not trigger a targeted rebuild, and options.clearCache.pages only controls whether a user sees the cache command in the toolbar.