[TYPO3-dev] cObj Cache, COA and HMENU

JoH asenau info at cybercraft.de
Mon Apr 8 18:18:57 CEST 2013


> There must be a check around cObjGetSingle for any kind of nested
> cObject COA, COA_INT, HMENU etc. to properly provide the return of
> cached content in case there is
> a) a cache setting within the stdWrap methods of this object
> b) an available cache entry for the matching key

Actually this should be done for every cObject.
While keeping the stdWrap.cache method in place for the internal use by 
other stdWrap methods, it must be checked before starting to render any 
cObject.

So both of the following snippets would be working:

lib.something = COA
lib.something {
   cache.key = whatever
   10 = TEXT
   10.value = Test
}


lib.something = TEXT
lib.something {
   wrap = blah|blah
   wrap {
     cache.key = whatever
     override.cObject = USER
     override.cObject {
       #something here
     }
   }
}

While the first example would need the additional cObjGetSingle-check, 
the second would already be working with the current code.

Cheers

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your gob sometimes!)
Dieter Nuhr, German comedian
Xing: http://contact.cybercraft.de
Twitter: http://twitter.com/bunnyfield
TYPO3 cookbook (2nd edition): http://www.typo3experts.com



More information about the TYPO3-dev mailing list