[TYPO3-english] Clear cache in backend module of an extension (TYPO3 4.5)

Hauke Hain newgrp at googlemail.com
Sun Oct 16 19:31:51 CEST 2011


Hi Peter,

thanks for your reply.
Sadly this is no option. My extension is on every single page. In the 
backend module you can review new comments an unhide them or hide them 
again. On each action the page that contains the comment (it is stored 
directly on the page that displays the comment if not hidden, so I know 
which pid must be cleared) should be cleared. I do not want to have the 
extension not cached in order to see the result of the backend module action 
immediately.

Kind regards
Hauke

"Peter Kühnlein" <peter at function2form.net> schrieb im Newsbeitrag 
news:mailman.1124.1318782711.2434.typo3-english at lists.typo3.org...
> Am 16.10.2011 16:41, schrieb Hauke Hain:
>> Hi there,
>>
>> in TYPO3 <4.5 I used the following function to clear the cache of 
>> specific pages:
>>    function clearPageCache($pid) {
>>      $TCE = t3lib_div::makeInstance('t3lib_TCEmain');
>>      $TCE->clear_cacheCmd($pid);
>>    }
>>
>> This does not work with TYPO3 4.5.
>> I know how I can do better (correct for TYPO3 4.5) in an frontend plugin, 
>> but I do now know how to do it correct in the backend.
>>
>> Thank you for reading. Do you have any idea?
>>
>> Kind regards
>> Hauke
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
> Hi Hauke,
>
> if you want to have changes in a certain page trigger the clearing of the 
> cache for other pages, you can just add
>
> TCEMAIN.clearCacheCmd = [PIDList]
>
> to the PageTS config of the triggering one. PIDList is the comma-separated 
> list of pages the caches of which should be cleared.
>
> HTH Peter
>
> -- 
>
> http://www.function2form.net
> http://www.peter-kuehnlein.net
>
> "The resourcefulness of times of peace is the military preparation
>  for times of war."
>
> (Hagakure)
> 


More information about the TYPO3-english mailing list