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

Christian Kuhn lolli at schwarzbu.ch
Fri Aug 26 12:07:48 CEST 2011


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');

See wiki for details.

Regards
Christian




More information about the TYPO3-dev mailing list