[TYPO3-dev] using TCEMAIN clear_cacheCmd in frontend in 4.5 trunk

Tymoteusz Motylewski t.motylewski at gmail.com
Fri Dec 24 08:24:25 CET 2010


W dniu 2010-12-23 17:07, Krystian Szymukowicz pisze:

>
> What is the solution for that? Is TCEMAIN only supposed to be used from
> BE ?
>

It seems for me that tx_comments is clearing cache in a wrong way.
Here's the example: 
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/3/3/#id4003894

There is similar issue on the bug tracker. See the notes here by Oliver: 
http://bugs.typo3.org/view.php?id=7042

According to this two sources cache should be cleared like this:
$tce = t3lib_div::makeInstance('t3lib_TCEmain');
$tce->stripslashes_values = 0;
$tce->start(array(), array());
$tce->clear_cacheCmd('pages');

Merry Christmas!
Tymoteusz Motylewski




More information about the TYPO3-dev mailing list