Discussion:
[TYPO3-english] auto-clearing cache for displaying content released by timer
Simon Child
2013-05-11 10:38:30 UTC
Permalink
I use the access/start-time feature to release some content (including
tt_news items) at specific times. But often they don't display until the
cache is cleared, which means that I have to be around to clear the cache
manually, which rather defeats the purpose of setting the start-time!

Is there a way within TYPO3 (4.7) to set the cache to clear daily at a
specific time or times?

I've searched and found a cron job solution but it is for TYPO3 4.1

http://lists.typo3.org/pipermail/typo3-english/2007-July/041393.html

I think it needs updating for 4.7 - can anyone give me any pointers?

Thanks

Simon Child
Philipp Gampe
2013-05-11 20:35:21 UTC
Permalink
Hi Simon,
Post by Simon Child
Is there a way within TYPO3 (4.7) to set the cache to clear daily at a
specific time or times?
Check cache_period, cache and cache_clearAtMidnight.
http://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Config/Index.html

Also check the page properties for the cache timeout, cache tags, etc.

Best regards
--
Philipp Gampe ? PGP-Key 0AD96065 ? TYPO3 UG Bonn/K?ln
Documentation ? Active contributor TYPO3 CMS
TYPO3 .... inspiring people to share!
Simon Child
2013-05-12 13:42:58 UTC
Permalink
"Philipp Gampe" <philipp.gampe at typo3.org> wrote in message
Post by Philipp Gampe
Hi Simon,
Post by Simon Child
Is there a way within TYPO3 (4.7) to set the cache to clear daily at a
specific time or times?
Check cache_period, cache and cache_clearAtMidnight.
http://docs.typo3.org/typo3cms/TyposcriptReference/Setup/Config/Index.html
Also check the page properties for the cache timeout, cache tags, etc.
Ah that looks helpful, thanks

So if I put this in my site config

config.cache.1 = tt_news:60

The news listing on page 1 (home page) will refresh its cache automatically
when an article (stored in pid 60) reaches it start-time?

And I can stack them to influence other pages as well e.g. my main news
listing (page 17) and my news special sections (page 23)?

config.cache.1 = tt_news:60
config.cache.17 = tt_news:60
config.cache.23 = tt_news:60

Thanks


Simon Child
Philipp Gampe
2013-05-12 14:59:22 UTC
Permalink
Hi Simon,
Post by Simon Child
So if I put this in my site config
config.cache.1 = tt_news:60
The news listing on page 1 (home page) will refresh its cache
automatically when an article (stored in pid 60) reaches it start-time?
Yes, the cache entry has a lifetime set so the changes will be respected.
Post by Simon Child
And I can stack them to influence other pages as well e.g. my main news
listing (page 17) and my news special sections (page 23)?
config.cache.1 = tt_news:60
config.cache.17 = tt_news:60
config.cache.23 = tt_news:60
Yes, if you are below the page into which you add this TSconfig (because
TSconfig is inherited to subpages).

Best regards
--
Philipp Gampe ? PGP-Key 0AD96065 ? TYPO3 UG Bonn/K?ln
Documentation ? Active contributor TYPO3 CMS
TYPO3 .... inspiring people to share!
Loading...