[TYPO3-dev] t3lib_cache

Steffen Kamper steffen at sk-typo3.de
Thu Jan 17 18:16:55 CET 2008


"Ernesto Baschny [cron IT]" <ernst at cron-it.de> schrieb im Newsbeitrag 
news:mailman.1.1200568076.10344.typo3-dev at lists.netfielders.de...
> Steffen Kamper wrote: on 17.01.2008 10:12:
>> Hi,
>>
>> cache is one of the most advanced things in TYPO3 and developers search 
>> for own methods to clear specific cache.
>> What do you think about creating a general cache API?
>>
>> My proposal is to bundle existing functions in one file, eg. t3lib_cache, 
>> maybe mostly static functions that can be called from extensions.
>> API should have functionality like
>> - creating chash from given piVars
>> - deleting cache of specific pid
>> - deleting cache from specific cHash
>> - register cache using fields reg1
>> - deleting cache with registered reg1
>>
>> What do you think? Please let me know you're ideas.
>
> Sounds like a nice idea. The also include a wrapper for getHash and 
> storeHash from t3lib_pageSelect (or move them here and make the wrapper in 
> pageSelect), as these are probably not very known by people needing their 
> own caching.

i saw that these two functions (getHash and storeHash) are duplicate in 
core, they also exist in t3lib_befunc.
So it's good to move them to the new class and substitute with wrappers.

I look for your explanation in dev-list how to use them for own caching and 
copy that to the wiki page.

vg  Steffen 






More information about the TYPO3-dev mailing list