[TYPO3-mvc] condition if action is cached / uncached

Sebastian Schreiber me at schreibersebastian.de
Sat Dec 17 16:42:57 CET 2011


Am 17.12.2011 12:29, schrieb Domi:
> Hi Georg,
>
> I know, thats why I want to implement a fallback for the case of 
> uncached actions in the current fed project.
>
> Cheers Domi
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
Hi Domi,
i think what you need in your viewhelper is the following condition:
if(TRUE === $this->controllerContext->getRequest()->isCacheable()) {
} else {
}

does it serves you?



-- 
Sebastian Schreiber
(Medieninformatiker B.Sc.)
(TYPO3 Certified Integrator)

Schanzenstraße 27, Schlosserei 4
D-51063 Köln

T  0221 677 88 541
M  0176 431 05 790

Skype schreibersebastian.de

me at schreibersebastian.de
www.schreibersebastian.de

Steuernummer: 217 / 5269 / 4675



More information about the TYPO3-project-typo3v4mvc mailing list