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

Rupert Germann rupi at gmx.li
Thu Oct 15 08:20:35 CEST 2009


hi Steffen,

Steffen Müller schrieb:
> 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?

have a look at the extensions
http://typo3.org/extensions/repository/view/ttnewscache/current/
http://typo3.org/extensions/repository/view/ttnewscache_clearlike/current/

also "COA_GO" might be helpful here
http://typo3.org/extensions/repository/view/coago/current/

greets
rupert




More information about the TYPO3-dev mailing list