[TYPO3-mvc] Clearing cached views on demand

Franz Koch typo3.RemoveForMessage at elements-net.de
Sat Jan 16 00:18:07 CET 2010


Hi,

> Yeah, I already have cached the category and product view
> with this, but I thought it might be handy to also cache the
> cart on a normal call, and clear the view cache, on special
> actions, like adding products or updating quantities.
>
> Imho this would achieve a faster loading cart on a normal call,
> and ensure that the view is updated in the cache, when the cart
> items are modified or added.

I see one big issue - multiple users. How would typo3 know to which user 
the cached page belongs to? And clearing the cache and generating the 
whole page again instead of just 1 plugin on that page might in summary 
not be much different performance whise.

> Would it be possible to somehow clear the cache of the view
> with an API funtion or something?

try using the TYPO3 api?
-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list