[TYPO3-dev] clear cache from extension

Popy popy.dev at gmail.com
Sun Jun 17 20:14:48 CEST 2007


The extension pp_lib provides some cache management function, in order to
clear the "extension cache" parts by parts

2007/6/17, Steffen Kamper <steffen at sk-typo3.de>:
>
> Hi devs,
>
> i found a very good working method in the list (long time ago), where
> bernhard described a method to handle cache from extension entries.
> I think this is a genious way to do that and want to show you (again).
>
> There is e field in cache_pages that is not used in normal context
> (reg1/reg2) but can used in a special context:
> $GLOBALS['TSFE']->page_cache_reg1 = 13;
>
> i took the 13, you can choose any number you want. If this is done e.g.
> begin of extension, all cache-entries are done with reg1=13, so it is very
> easy to delete all extension-related cached pages by
> $GLOBALS['TYPO3_DB']->exec_DELETEquery('cache_pages', 'reg1=13');
>
> vg  Steffen
>
>
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-dev
>



-- 
Popy

Vulnerant omnes, ultima necat.

http://popy.sytes.net




More information about the TYPO3-dev mailing list