[TYPO3-mvc] How to clear page cache when object property has changed

g4-lisz at tonarchiv.ch g4-lisz at tonarchiv.ch
Wed Nov 9 13:48:22 CET 2011


On 09.11.2011 13:16, Bastian Waidelich wrote:
> g4-lisz at tonarchiv.ch wrote:
>
> Hi Till,
>
>> we use two actions "show" and "edit". the show action is cached.
>> now when we edit a property of a domain object (e.g. "city"), this
>> change of course should be reflected in the show action. [...]
>
> By default Extbase automatically clears the cache of the current page 
> whenever a record has been added/changed/deleted.
> If you set the TCEMAIN.clearCacheCmd correctly in your page TS config 
> (see [1]) Extbase will clear the affected page(s) even if the records 
> are stored in another page (e.g. a SysFolder).
>
> HTH
> Bastian
>
> [1] 
> http://buzz.typo3.org/people/ron-hall/article/dont-wear-out-the-clear-cache-button/
>
hi bastian,

thanks for the hint!

the point is that we use several show actions - each of them shows 
different object properties. if a user changes prop1 we only want to 
clear the cache of pages which show prop1...

if i put TCEMAIN.clearCacheCmd = xy on the data repository page, all 
pages are cleared if any of the properties have changed.

cheers,
till


More information about the TYPO3-project-typo3v4mvc mailing list