Translations
Info
All page names need to be in English.
en da  de  fr  it  ja  km  nl  ru  zh

Plugin Caching

From TYPO3Wiki
Jump to: navigation, search

notice - This information is outdated

While some details may still apply in specific situations, this page was written for packages of TYPO3 that are no longer current.


[applies to 3.8.1]

When creating frontend plugins, you can choose whether the plugin output should be cached or not. Easiest way is to let its output not be cached, that means to make the plugin a "USER_INT" content object. If you decide to let it be cached, you have to handle caching issues in the plugin yourself. This can maybe give you a speedup, but is more complicated to do.

In any case, cached frontend plugins need this code:

ext_localconf.php: t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.tx_test1_pi1.php','_pi1','list_type',1);

pi1/class.tx_test1_pi1.php: var $pi_checkCHash = TRUE;

Non-cached frontend plugins need this:

ext_localconf.php: t3lib_extMgm::addPItoST43($_EXTKEY,'pi1/class.tx_test1_pi1.php','_pi1','list_type',0);

pi1/class.tx_test1_pi1.php: $this->pi_USER_INT_obj=1;