[TYPO3-english] Disable caching of a plugin
Simon Strandgaard
neoneye at gmail.com
Mon Apr 19 16:27:27 CEST 2010
On Mon, Apr 19, 2010 at 4:09 PM, Ries van Twisk <typo3 at rvt.dds.nl> wrote:
>
>> /*
>> in main()
>> */
>> $this->pi_USER_INT_obj = 1; // Disable caching
>> $GLOBALS["TSFE"]->set_no_cache();
>>
>
>
> It's currently strongly discouraged to use set_no_cache()
> and in fact the behavior can be turned off completely within the install
> tool.
>
> Best way to add the JS/CSS is using typoscript.
Ok.
I have been looking through a lot of extensions to see how
to add a javascript include via typoscript, but without luck.
I guess ext_localconf.php should contain something like this..
t3lib_extMgm::addTypoScript($_EXTKEY, 'magic... res/misc.js ... magic');
Any hints how misc.js can be included?
--
Best regards
Simon Strandgaard
More information about the TYPO3-english
mailing list