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

Krystian Szymukowicz t33k at prolabium.com
Tue Dec 28 21:44:29 CET 2010


W dniu 2010-12-28 21:39, Krystian Szymukowicz pisze:
> W dniu 2010-12-26 13:37, Krystian Szymukowicz wrote:
>> W dniu 2010-12-25 22:13, Steffen Kamper wrote:
>>> Hi,
>>>
>>> i investigated this issue, and it's nonsense to call tcemain from FE as
>>> this is not intended to do so.
>>>
>>> Clearing cache in FE is possible as it's built in. The only senseful is
>>> clearing page cache, configuration cache or rte cache is not allowed
>>> from FE context.
>>>
>>> To clear cahce in FE there are two functions available:
>>>
>>> $GLOBALS['TSFE']->clearPageCacheContent() <= clears all page cache
>>> $GLOBALS['TSFE']->clearPageCacheContent_pidList($pidList) <= clears
>>> cache of pages for given uid's
>>>
>>> So this is all what is needed for FE. For own cache using cache
>>> framework there are the built in functions from cache framework.
>>>
>>
>> Right.
>>
>> This issue has been reported as bug in "comments" extension then.
>>
>
>
> btw
>
> this problem touches also mm_forum at the beginning of the configuration
> in the backend (! yes).
>
> I did not dig futher into reason of that but after removing the
> $this->BE_USER->writelog() in clear_cacheCmd the problem is gone.

Sorry - I was not precise.

Despite of the fact that mm_forum acts in the backend they do not have 
properly initialised $this->BE_USER.

So the same error apreas like in "comments"

Fatal error: Call to a member function writelog() on a non-object in 
t3lib\class.t3lib_tcemain.php on line 6761



-- 
grtz
Krystian Szymukowicz




More information about the TYPO3-dev mailing list