[TYPO3-dev] Caching Framework
Martin Kutschker
masi-no at spam-typo3.org
Sun Mar 7 10:27:47 CET 2010
Bernhard Kraft schrieb:
> Martin Kutschker wrote:
>
>> I just want to encapsulate the current cache access in the Core in a
>> "service object". You would use
>> it like that:
>>
>> // clear cache for single page
>> $pageCacheObject->clearCacheForPage($pid);
>> // clear complete page cache
>> $pageCacheObject->clearCache();
>
> Currently one has to use tcemain for this - you would like to get it
> into a class of its own?
Yes. It doesn't belong logically to it and there are some other places in the Core where the cache
is accessed (mostly put-into-cache operations).
So the rest of the API would look like this:
$pageCacheObject->cachePage($pid, $cacheHash, $content);
Masi
More information about the TYPO3-dev
mailing list