[TYPO3-project-4-3] changing the page cache to use the new caching framework

Ingo Renner ingo at typo3.org
Tue Sep 16 16:41:50 CEST 2008


Dmitry Dulepov [typo3] wrote:
> Hi!
> 
> Ingo Renner wrote:
>> now that t3lib_cache is in trunk I had the idea to change the existing 
>> page cache to use the new framework.
>>
>> biggest con though:
>> * it would break backwards compatibility
> 
> If you mean it will break extensions that clear cache_* tables, I say 
> "Do it!" :) TCEmain should still clear cache properly after this change.

Well, actually that came to my mind, too. The caching system doesn't 
have a real API and is not used very often anyways, and direct 
operations on the cache tables are bad, too. So it's not that a big 
issue as I first thought...

  > I think we should do it before the next week. Preferably before 
Thursday
> as we may need it next week @ Hackontest. Do you have time to do it quick?

will try =)

>>     // tt_news_X are the records shown on that page
>> $TSFE->page->addTags('tt_news_list, tt_news_1, tt_news_2, tt_news_3');
> 
> addTags or addCacheTags?

whatever, this was just a quick brain dump

> 
>> And of course the core would tag the page with stuff we already have 
>> like the cHash:
>>
>> $TSFE->page->addTags('core_cHash_######');
> 
> Looks like we will need certain rules for tag names.

I'd say that extensions should just prepand their tags with tx_EXTKEY_


Ingo

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


More information about the TYPO3-project-4-3 mailing list