[TYPO3-mvc] problem with cache
Bastian Waidelich
bastian at typo3.org
Mon Sep 12 11:39:53 CEST 2011
Dawid Pacholczyk wrote:
Hi Dawid,
> I have a problem with cache in extbase. I have single view of my record
> where I have few variables. For example a button is shown only sometimes
> or available places on my course are changed every time by the system
> when someone registers on it. But cause of cache it`s always the same.
> Can I clear cache from extension level ?
By default (if persistence.enableAutomaticCacheClearing is set), Extbase
will take the "TCEMAIN.clearCacheCmd" TSConfig into account.
That setting clears the cache for defined pages whenever some record has
been modified/added/deleted in the respective folder/page (see [1]).
Just use this, and *TADA* extbase clears the cache automatically - even
if the record has been changed in FE via Extbase.
> Or can I set some parts of my fluid template as non cached ?
No, that's currently not possible.
Best,
Bastian
[1]
http://buzz.typo3.org/people/ron-hall/article/dont-wear-out-the-clear-cache-button/
More information about the TYPO3-project-typo3v4mvc
mailing list