[TYPO3-dev] clear cache from extension
Steffen Kamper
steffen at sk-typo3.de
Sun Jun 17 11:27:04 CEST 2007
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
More information about the TYPO3-dev
mailing list