[TYPO3-mvc] [TYPO3-v4] Is action uncached?

Dmitry Dulepov dmitry.dulepov at gmail.com
Thu May 27 13:08:50 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.

-- 
Dmitry Dulepov
TYPO3 expert / TYPO3 core&security teams member
Twitter: http://twitter.com/dmitryd
Read more @ http://dmitry-dulepov.com/


More information about the TYPO3-project-typo3v4mvc mailing list