[TYPO3-dev] Clearing the cache of a single instance of a page (single view) instead of the whole page

Steffen Müller typo3 at t3node.com
Thu Oct 15 02:02:58 CEST 2009


Hi.

If you have a classic single view page where a number of items are
displayed by using GETvars, there is no chance to clear the cache for a
single item, but only the whole page (e.g. using TCEmain->clear_cacheCmd).

A popular example is tt_news single view, e.g. the page
 http://www.example.com/?id=3&tx_ttnews[tt_news]=234
shows news article with uid=234.
tt_news docs suggests to use TCEMAIN.clearCacheCmd=3 to clear page cache
when an article has changed.
But that clears all instances of page 3:
 http://www.example.com/?id=3&tx_ttnews[tt_news]=1
 http://www.example.com/?id=3&tx_ttnews[tt_news]=2
 http://www.example.com/?id=3&tx_ttnews[tt_news]=...

Common clear cache functions seem to be too fuzzy to handle that. Now if
you have a website with many news articles, you might run into
performance problems.

I wonder if the caching framework gives us now some more control to
clear single view items from cache? If so, could you please point me to
the right direction?


-- 
cheers,
Steffen

TYPO3 Blog: http://www.t3node.com/
Blubber on Twitter: http://twitter.com/t3node




More information about the TYPO3-dev mailing list