[TYPO3-core] RFC: #11271: Use 2 level cache for BEgetRootLine

Steffen Kamper info at sk-typo3.de
Fri Jun 5 11:21:08 CEST 2009


hi Masi,

Martin Kutschker schrieb:
> Rupert Germann schrieb:
>> hi steffen,
>>
>> one question on reading: why do you introduce a new static var as firstlevel
>> cache and drop the formerly used $GLOBALS['T3_VAR']['BEgetRootLine_cache']?
>> I wouldn't be shure that this value isn't used elsewhere.
>>
>> suggestion: leave the first level in $GLOBALS['T3_VAR'
>> ['BEgetRootLine_cache']
> 
> IMHO shouldn't be used elsewhere as it is private*. If it's used from
> somewhere else the cache must be refactored.
>

exactly

> Can we have a two/three/multi-level cache in t3lib/cache first?
> 

isn't that independent from using the cache?

> And, when do these caches expire? It's one thing to cache a rootline
> calculation for one request, it's another to store it for a longer time
> period. The rootline may change ANY TIME, so every move/delete action in
> "pages" has to invalidate this cache.
> 

when create a new page the cache should be cleared for this tag, that's 
right. Now the cache_hash cache has to be cleared.
Now using the cache framework need to enhance the clearing cache by tag, 
as we already mentioned in the other threads, mainly by Rupi.

vg Steffen


More information about the TYPO3-team-core mailing list