[TYPO3-dev] scheduler_task should clear cache for one page
Benjamin Beck
BenjaminBeck at gmx.de
Fri Aug 26 11:29:58 CEST 2011
hi bernd,
i think you can let this be handled by typo3.
You have to tell typo which pages are influenced by the changed objects.
For this you can put this line into the TScconfig of the storagefolder which contains the changin objects (hope you have any):
TCEMAIN.clearCacheCmd = [pid],[pid],[pid]
I haven´t used this so far.. just stored it as snippet - so no guaranty that it´s working ..
alternative values are
# delete all FE-Cache:
TCEMAIN.clearCacheCmd = pages
# delete all cache:
TCEMAIN.clearCacheCmd = all
Grüße
Benjamin
On Aug 26, 2011, at 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?
>
> this does not work:
> $TCE = t3lib_div::makeInstance('t3lib_TCEmain');
> $TCE->clear_cache('pages',$viewPage);
>
> it results in:
> Fatal error: Call to a member function getTSConfig() on a non-object in /home/..../t3lib/class.t3lib_tcemain.php on line 6223
>
> bernd
> --
> http://www.pi-phi.de/cheatsheet.html
> _______________________________________________
> TYPO3-dev mailing list
> TYPO3-dev at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev
More information about the TYPO3-dev
mailing list