[Typo3-dev] $GLOBALS["TSFE"]->set_no_cache() vs USER_INT

Karsten Hachmeister mailingliste at hachmeister.org
Sun Sep 7 09:56:56 CEST 2003


Dominic Brander wrote:
> hi all
> I've had many problems with caching/no caching. almost all plugins I
> used did clear the cache with $GLOBALS["TSFE"]->set_no_cache() -
> therefore most of my pages where not indexed at all.
> to call a function I have the possibility to call it with USER or
> USER_INT. what is the the $GLOBALS["TSFE"]->set_no_cache() used for?
> As far as I have seen yet I can skip the
> GLOBALS["TSFE"]->set_no_cache() if I call my functions with the
> USER_INT. is this true?
>
> can someone explain me, when to use $GLOBALS["TSFE"]->set_no_cache()
> and when USER_INT?

If you want to use the indexed feature, so that your extension can be used by
the indexed search, both methods are not good. With USER_INT you extensions
don't get cached, but other on the same page. With set_no_cache() none get
cached on the current page.

If you want, the all output of you extension get cached, you need to create
special links for them, like this:

http://typo3.hachmeister.org/Erstelle_korrekte_Typoli.412.0.html


--
Karsten Hachmeister





More information about the TYPO3-dev mailing list