[TYPO3-dev] Cleaning up specific cached pages

Elmar Hinz elmar07 at googlemail.com
Mon Aug 27 22:56:02 CEST 2007


John de Stigter wrote:

> Hi,
> 
> Say I'd have a frontend form visitors could use edit existing newsitems
> of the tt_news table. What would be the best way to automatically clear
> the cache for the page running singleview and displaying that newsitem
> without deleting the cache of the other newitems?
> 
> Are there any functions or hooks for this? Would I for instance be able
> to clear specific cached pages with the cHash key?
> 
> Cheerios,
> John

Hi,

this question is a good one, because it is a simple practical example for a
question of general importance. 

Like Dmitry said, there is only an official way in the BE (TCEmain). You
could instantiate it. but that is a lot of additional loading. Depending on
the circumstances, it can be a good solution. 

Steffen and Popy point to a simlar solution using specific cache flags.

Having a kind of slimTCE for the FE would sometimes be nice. 

@all: Could such a slim version be much faster the full BE TCE?


Regards


Elmar










More information about the TYPO3-dev mailing list