[TYPO3-dev] Don't cache list, cache single view

Dmitry Dulepov dmitry.dulepov at gmail.com
Fri Mar 4 09:24:29 CET 2011


Hi!

Jan Bednarik wrote:
> is it possible to disable caching for list view and enable it for single
> view (because of indexed search).

Something like:

function main($content, array $conf) {
   if ($conf['CODE'] == 'LIST' &&
     $this->cObj->getUserObjectType() != tslib_cObj::OBJECTTYPE_USER_INT) {
       $this->cObj->convertToUserIntObject();
       return ''; // Return empty from here!
   }
   ...
}


-- 
Dmitry Dulepov
TYPO3 core&security team member
E-mail: dmitry.dulepov at typo3.org
Web: http://dmitry-dulepov.com/




More information about the TYPO3-dev mailing list