[TYPO3-dev] scheduler_task should clear cache for one page

Xavier Perseguers xavier at typo3.org
Fri Aug 26 12:25:29 CEST 2011


Hi,

Christian Kuhn wrote:
> On 08/26/2011 10:05 AM, Bernd Wilke wrote:
>> I have written a scheduler-task to import data.
>> this is working, but the FE-display of the data is cached and after an
>> data-update the cached page still is shown with old data.
>>
>> how can I clear cache of a page?
>
> If caching framework is enabled:
> cacheManager->getCache('cache_pages')->flushByTag('PageId_4711');

And w/o caching framework, in 4.5, have a look at how Extbase managed to 
do it from FE (search for TCEMAIN.clearCacheCmd)

HTH

-- 
Xavier Perseguers
Release Manager TYPO3 4.6

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org





More information about the TYPO3-dev mailing list