[TYPO3-project-4-3] changing the page cache to use the new caching framework
Dmitry Dulepov [typo3]
dmitry at typo3.org
Tue Sep 16 05:47:19 CEST 2008
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.
> especially the thing with the tags got me some nice ideas:
>
> After moving to the new system it would dramatically easier for people
> to "tag" pages in their extensions. with whatever tags they want and
> clear those cache entries whenever their extension needs to. This would
> make the system way more flexible and more dynamic
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?
> Example:
> a page showing a list of tt_news records in a list view. tt_news could
> go and add tags in a way like this:
>
> // 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?
> 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.
> Looking up and clearing pages by tag is then quite easy using
> t3lib_cache...
>
> Any comments?
Sounds wonderful! :) I am very enthusiastic and willing to test it when patch is ready :)
--
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/debugging_symlinked_typo3_files_with_komodo_ide_on_mac/
More information about the TYPO3-project-4-3
mailing list