Antwort
 
LinkBack (1) Themen-Optionen Thema bewerten Ansicht
  #1  
Alt 08.11.06, 16:27
Benutzerbild von maxhb
TYPO3 Forum Team
Moderator
 
Registriert seit: 19.08.04
Ort: Bremen
Alter: 36
Beiträge: 1.535

Wie kann ich das Caching von Extensions steuern?


Die Ausgabe einer Extension wird normalerweise durch TYPO3 zusammen mit den übrigen Seiteninhalten gecacht. Falls das nicht erwünscht ist, so kann man im Extension-Verzeichnis die Datei ext_localconf.php anlegen / editieren:

PHP-Code:
<?php
if (!defined ("TYPO3_MODE"))     die ("Access denied.");
t3lib_extMgm::addPItoST43(, "pi1/class.tx_namederextension_pi1.php" ,"_pi1"""0);
?>
Die Methode addPItoST43 wird dabei wie folgt parametrisiert (aus t3lib/class.t3lib_extmgm.php:sad:

Zitat:
  • When adding a frontend plugin you will have to add both an entry to the TCA definition of tt_content table AND to the TypoScript template which must initiate the rendering.
  • Since the static template with uid 43 is the "content.default" and practically always used for rendering the content elements it's very useful to have this function automatically adding the necessary TypoScript for calling your plugin.
  • determines the type of frontend plugin:
  • "list_type" (default) - the good old "Insert plugin" entry
  • "menu_type" - a "Menu/Sitemap" entry
  • "splash_layout" - a "Textbox" entry
  • "CType" - a new content element type
  • "header_layout" - an additional header type (added to the selection of layout1-5)
  • "includeLib" - just includes the library for manual use somewhere in TypoScript.
  • (Remember that your definition should correspond to the column/items array in where you added the selector item for the element! See addPlugin() function)
  • FOR USE IN ext_locallang.php FILES
  • @param string is the extension key
  • @param string is the PHP-class filename relative to the extension root directory. If set to blank a default value is chosen according to convensions.
  • @param string is used as a - yes, suffix - of the class name (fx. "_pi1")
  • @param string , see description above
  • @param boolean If is set as USER content object (cObject) is created - otherwise a USER_INT object is created.
© maxhb
__________________
FreeBSD || MySQL 5.x || TYPO3 3.6 - 4.2

Meine Stadt, meine Firma, mein Redaktionssystem.

Geändert von Junior (10.11.06 um 11:51 Uhr).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist Ihnen nicht erlaubt, neue Themen zu verfassen.
Es ist Ihnen nicht erlaubt, auf Beiträge zu antworten.
Es ist Ihnen nicht erlaubt, Anhänge hochzuladen.
Es ist Ihnen nicht erlaubt, Ihre Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist aus.
HTML-Code ist an.
Trackbacks are an
Pingbacks are an
Refbacks are an

LinkBacks (?)
LinkBack to this Thread: http://www.typo3forum.net/forum/faq-extensions/17815-caching-extensions-steuern.html
Erstellt von For Type Datum
Nabble - TYPO3 German - Cache fuer bestimmte Inhalte ausschalten This thread Refback 10.10.08 07:59

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Kann keine Extensions installieren eastpower TYPO3 4.x Fragen und Probleme 7 10.08.07 12:46
Kann Extensions nicht installieren und beim Import kommt Fehler Meldung bjs1977 TYPO3 4.x Fragen und Probleme 4 09.05.07 19:58
Wie kann ich für Extensions Formatierungen ändern? Thoral FAQ - Extensions 0 08.11.06 16:59
Wo kann ich Extensions runterladen? linksblinker FAQ - Extensions 0 08.11.06 16:36
Wie kann ich mittels Conditions TypoScript in Abhängigkeit von Variablen steuern? Junior FAQ - Template & TypoScript 0 08.11.06 13:52


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:20 Uhr.


Powered by vBulletin® Version 3.7.3 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0