[TYPO3-mvc] Cache duration for plugin content

Stephen Bungert stephenbungert at yahoo.de
Sun May 13 12:17:22 CEST 2012


Thanks for the tip. I shall have a look at this, I shall try and cache the 
content of $this->view->render too the way I'm currently caching the 
scoop.it data and see if this also makes rendering faster.

"Susanne Moog" <susanne.moog at typo3.org> schrieb im Newsbeitrag 
news:mailman.1.1336408016.18845.typo3-project-typo3v4mvc at lists.typo3.org...
> On 05/06/2012 09:42 PM, Christian Kuhn wrote:
>> On 05/06/2012 09:35 PM, Christian Kuhn wrote:
>>> But extension 'enetcache' from TER provides an API to do exactly what
>>> you want.
>>
>> Ah, sry, forgot to mention the pitfall: There is currently no documented
>> way to use enetcache in extbase context as controller or action wrapper.
>> It is do-able, though.
>
> It is actually dead simple:
>
> Just make an instance of enetcache at the beginning of your action and
> call get with your identifier, return if there was a result, else run
> through your action and do the "$this->view->render" yourself, add it to
> the cache via set (and your identifier) and return the rendered view.
> Finished ;)
>
> Cheers,
>
> Susi
>
> -- 
> Susanne Moog
> TYPO3 Core Team Member
>
> TYPO3 .... inspiring people to share!
> Get involved: http://typo3.org 



More information about the TYPO3-project-typo3v4mvc mailing list