[TYPO3-dev] Cleaning up specific cached pages

Steffen Kamper steffen at sk-typo3.de
Tue Aug 28 00:08:11 CEST 2007


"Elmar Hinz" <elmar07 at googlemail.com> schrieb im Newsbeitrag 
news:mailman.1.1188248338.31122.typo3-dev at lists.netfielders.de...
> 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
>
>

coming back to the cache-flags: There are two flags. When i look to my 
cache-entries they are nearly never used, but the idea of the flags could 
help a lot.
What do you think, if every extension by default use a cache-flag so it 
would be easy to identify the cache-entries?

vg  Steffen 






More information about the TYPO3-dev mailing list