[TYPO3-dev] Cleaning up specific cached pages
Popy
popy.dev at gmail.com
Tue Aug 28 08:19:06 CEST 2007
2007/8/28, Elmar Hinz <elmar07 at googlemail.com>:
>
> 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
>
This system is already done and works in pp_lib, class tx_pplib2, functions
storeHash and clearHashList (see also loadHashList and saveHashList)
It is used in some private extension and in pp_forum
--
Popy
Vulnerant omnes, ultima necat.
http://popy.sytes.net
More information about the TYPO3-dev
mailing list