[TYPO3-core] RFC #9505: Make the caches in TYPO3 use the new caching framework

Ingo Renner ingo at typo3.org
Mon Oct 20 13:08:50 CEST 2008


Hi *,

here's an updated version that takes Masi's suggestions and questions 
into account.

changes to v3:

* "TODO check where $expTime is used, the new caching API can't handle 
it, so it can be removed":
This one is resolved, the TODO is removed. Throughout the core it was 
used with the parameter's default value only, so I removed it. The thing 
is that the new caching frameworks handles the lifetime of a cache entry 
  when saving it, not when retrieving it like the old one did.

This affected the method t3lib_pageSelect::getHash() and it's identical 
sibling t3lib_BEfunc::getHash().
For the pageSelect method I found only one place where it wasn't used 
with a value different from the default. This was in tslib_menu, which I 
changed to set the lifetime of a cache entry when saving it instead of 
comparing the lifetime when retrieving the entry.

* naming of $cacheManager and $TYPO3_CACHE
these have been changed to $typo3CacheManager and $typo3CacheFactory 
(both are still global)
Both, the cache manager and the factory now implement the new 
t3lib_Singleton interface


Hope we can get this one through now.



all the best
Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 9505_v4.diff
Type: text/x-diff
Size: 64382 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20081020/c8ae12b7/attachment-0001.diff 


More information about the TYPO3-team-core mailing list