[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:02:04 CET 2011


hi henjo,

thank you very much! That's exactly what i was looking for :)

well the workflow is quite simple: there is a protected area where 
logged in users can change some of their data. after this, caches have 
to be cleared. i can't imagine any other solution at the moment ...

cheers,
till

On 09.11.2011 12:53, Henjo Hoeksma wrote:
> Hi,
>
> yes, extbase has a utility you can
> use: Tx_Extbase_Utility_Cache::clearPageCache($pageIdsToClear);
>
> But it is always good to question your workflow when needing this ;-)
>
>
> Kind regards,
>
> Henjo
>
> Problems are small because we learned how to deal with them.
> Problems are big because we need to learn how to deal with them.
>
>
> On Wed, Nov 9, 2011 at 12:42,<g4-lisz at tonarchiv.ch>  wrote:
>
>> hi there,
>>
>> 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. i.e. the page cache has
>> to be cleared. is there an easy way to achieve this without having to clear
>> the whole pages cache?
>>
>> i'm think about calling some "clearPageCache($pid)" function in the
>> editAction method - is there something similar?
>>
>> thanks,
>> till
>> ______________________________**_________________
>> TYPO3-project-typo3v4mvc mailing list
>> TYPO3-project-typo3v4mvc@**lists.typo3.org<TYPO3-project-typo3v4mvc at lists.typo3.org>
>> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**
>> project-typo3v4mvc<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc>
>>
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list