[TYPO3-english] Cache settings dilemma

bernd wilke t3ng at bernd-wilke.net
Mon Nov 10 09:45:17 CET 2014


Am 22.10.14 15:21, schrieb Stephan Schuler:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> Hey Loek.
>
> You clearly want to use cache tags.
>
> If a new page renders news lists, the page needs to be tagged by "tx_news_domain_model_news".
> If a page renders a single news either by being a news details page or e.g. based on "more like that" (solr feature), this page needs to be tagged by "tx_news_domain_model_news_$newsId".
>
> Now whenever an editor adjusts a news record in the backend, all caches tagged by both, "tx_news_domain_model_news" as well as "tx_news_domain_model_news_$newsId" are flushed automatically.
>
> So that's not a dilemma but actually completely handled by TYPO3 internals these days. The only thing you need to do: Use prober tagging.

I don't get it.
What is done by TYPO3 (core)? what is done by ext:news?
What needs to be configured by me?
Can this be handled with typoscript (FE-TS, Page-TSconfig) only?

> <pre>
> /** @var \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController $typoScriptFrontendController */
> $typoScriptFrontendController = $GLOBALS['TSFE'];
> $typoScriptFrontendController->addCacheTags(array( tx_news_domain_model_news', 'tx_news_domain_model_news_123'));
> </pre>

do I need to program a new FEController for these lines?



how can this be handled in an installation with multiple purpose use of 
news?
I have an installation with different disjunct areas for news:
there are press-releases
there are jobs
there are magazine-pages

each of these areas has it's own page for data and it's own categories, 
and also it's own pages to show the data.
so after a change in the jobs the pages for press releases and magazines 
need no cache invalidation.

can the cache be tagged and cleared with the appropiate categories?


and following Viktor:
where is more documentation?

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list