[TYPO3-english] Disable caching of a plugin
Dmitry Dulepov
dmitry.dulepov at gmail.com
Tue Apr 20 09:25:58 CEST 2010
Hi!
Simon Strandgaard wrote:
> I have found a combination that seems to work. Is it good?
How to tell you... It is approximately like trying to repair glasses with a
hummer.
> /*
> in ext_localconf.php
> */
> t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_myext_pi1.php', '_pi1',
> 'list_type', 1);
This tells TYPO3 that plugin is cached.
> /*
> in class top
> */
> // var $pi_checkCHash = true;
This tells TYPO3 that cHash for this plugin should be checked.
> /*
> in main()
> */
> $this->pi_USER_INT_obj = 1; // Disable caching
This does not disable cache but affects how links are generated.
> $GLOBALS["TSFE"]->set_no_cache();
This prohibits page caching completely, which makes menu generation, links
generation rest of content generation each time when user enters the page.
In other words, it is a complete performance killer and highly discouraged.
--
Dmitry Dulepov
TYPO3 expert / TYPO3 security team member
Read more @ http://dmitry-dulepov.com/
More information about the TYPO3-english
mailing list