[TYPO3-dev] clear page cache of page branch

Steffen Kamper steffen at sk-typo3.de
Mon Jun 11 18:20:51 CEST 2007


"Martin Kutschker" <Martin.Kutschker at n0spam-blackbox.net> schrieb im 
Newsbeitrag news:mailman.1.1181578114.9005.typo3-dev at lists.netfielders.de...
> Thorsten Kahler schrieb:
>> Hi Masi,
>>
>> Martin Kutschker wrote on 11.06.2007 15:40:
>>> Is it possible to clear the page cache for a whole page branch (NOT a
>>> page with subpages or the WHOLE tree) with one API call?
>>
>> how do you define "page branch" if not as "page with subpages". Do you 
>> mean
>> a page and its siblings?
>
> Brothers and sister are siblings.
>
> With branch I mean all pages in the tree below a given page (all children, 
> grand-children, grand-grand-children and so on).
>
> With subpages I mean only children, but not grand-children etc.
>
> Masi

Hi Masi,

afaik there is no API-call for this. You have to create the pidlist and then 
clear cache of each page in a loop.
maybe this snippet helps you:

$TCE = t3lib_div::makeInstance('t3lib_TCEmain');
$TCE->admin = 1;
$TCE->clear_cacheCmd('pages');
$TCE->clear_cacheCmd($pid);

vg  Steffen 






More information about the TYPO3-dev mailing list