[Typo3-dev] Clear Cache
Kraft Bernhard
kraftb at kraftb.at
Sat Apr 2 11:57:47 CEST 2005
Lars Houmark wrote:
> Can anybody point me in the direction on how to clear some or all pages in
> the cache, directly from the "mod" index.php script?
I do:
--------------snip---------------------
$tce = t3lib_div::makeInstance('t3lib_TCEmain');
$tce->admin = 1;
$tce->clear_cacheCmd('pages');
header('Location: '.t3lib_div::linkThisScript(array($this->prefixId => '', $this->prefixId.'[showUid]' => $new_id)));
--------------snip---------------------
in one of my FE-scripts ... don't know if it will work for a BE script. I'm also curious.
And what I would also like to know is how to clear the cache of single pages ...
I do not really like the idea of clearing the complete page cache whenever a user
uploads a record.
greets,
Bernhard
More information about the TYPO3-dev
mailing list