[TYPO3-german] Wie wende ich 'addPageCacheTags' richtig an?
JCL - Johannes C. Laxander
jc at laxander.com
Fri Oct 31 20:22:49 CET 2014
Hall Chris,
Hallo Philipp,
jetzt bin ich total von der Rolle, und versteh nix mehr. Kann es sein, dass da alles durcheinander geraten ist?
Philipp hatte mir diesen Tipp gegeben:
plugin.tx_myplugin_pi1 {
... dein Üblicher Plugin rendering code
stdWrap. addPageCacheTags = tx_myplugin_on_page
}
Nachdem es bei mir so nicht funktioniert hat, fragte Chris, ob ich das caching framework aktiviert hätte. Ich suchte danach und meinte es mit
plugin.tx_myext {
stdWrap.cache {
key = txmyext_{page:uid}_{TSFE:sys_language_uid}
key.insertData = 1
tags = txmyext
lifetime = unlimited
}
stdWrap.addPageCacheTags = txmyext
}
gefunden zu haben. Nun schreibt aber Philipp, dass stdWrap.cache mit stdWrap.addPageCacheTags nicht zu tun hat, was ich ja nicht bezweifle.
Die Frage belibt dann: Wie aktiviere ich das Caching Framework unter TYPO3 6.2??? Im Install Tool habe ich dazu nichts relevantes gefunden oder aber übersehen. Oder reicht es so:
plugin.tx_myext {
stdWrap.cache {
key = txmyext
key.insertData = 1
tags = txmyext
lifetime = unlimited
}
}
um dann im Seiten Tsconfig mit 'TCEMAIN.clearCacheCmd = cacheTag:txmyext' die Seiten im Cache zu löschen, wenn eine Datensatzänderung durchgeführt wurde?
Wäre schön wenn ich noch n bisschen Hilfestellung kriegen könnte. Danke.
Johannes.
>
> Hi,
>
> JCL - Johannes C. Laxander wrote:
>
> > danke für deine Antwort. Ok, da hab' ich im Übereifer nicht richtig
> > nachgedacht :(
> >
> > Wenn ich es richtig verstehe, dann brauchts den key nicht
> unbedingt,
> > wenn ich dafür tags angebe. Ist das richtig gedacht??
>
> stdWrap.cache has nothing to do with stdWrap.addPageCacheTags.
>
> The first is about caching the rendered content element
> across different pages, even if the page cache is cleared.
> The second is about adding more tags to the page cache to
> make them as related and to clear the cache based on those marks.
>
> Thus both functions works against each other.
>
> Cheers
> --
> Philipp Gampe – PGP-Key 0AD96065 – TYPO3 UG Bonn/Köln
> Documentation – Active contributor TYPO3 CMS
> TYPO3 .... inspiring people to share!
>
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
>
More information about the TYPO3-german
mailing list