[TYPO3-dev] Cleaning up specific cached pages

Elmar Hinz elmar07 at googlemail.com
Tue Aug 28 00:31:10 CEST 2007


Steffen Kamper wrote:

>>
> 
> 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


To use an up-to-date term you think of "tagging" the the cache entries?
The controllers class name would be a good unique tag. 

Two easy functions would do the simple furnishment:

 tagMyCache($controllerClassName)
 flushMyCache($controllerClassName)

The advanced furnishment could add a second parameter $someId to flush
single entries:

 tagMyCache($controllerClassName, $someId)
 flushMyCache($controllerClassName, $someId)

It would be up to the extension, how it would use the $id parameter.

Elmar















More information about the TYPO3-dev mailing list