[TYPO3-mvc] [TYPO3-v4] Is action uncached?
Xavier Perseguers
typo3 at perseguers.ch
Thu May 27 13:46:27 CEST 2010
Hi,
> Xavier Perseguers wrote:
>> Well, the problem is not to create an uncached action. I know how to do
>> it since the very beginning of Extbase (as I'm an early adopter/tester)
>> ;-) The underlying problem is that I'd like to know inside the
>> controller, when performing any action (that is in some common methods
>> for both cached and uncached actions) whether the current action is
>> running in cache or non cached mode.
>
> If you have access to $this->cObj, you can use
> $this->cObj->getUserObjectType(). It returns OBJECTTYPE_USER_INT if current
> plugin object is uncached.
Funny, I had somehow forgotten that feature but found it again for about 30 min and I had the same idea.
Thanks.
--
Xavier Perseguers
http://xavier.perseguers.ch/en
More information about the TYPO3-project-typo3v4mvc
mailing list