[TYPO3] TS condition : check whether plugin X is on page
Xavier Perseguers
typo3 at perseguers.ch
Tue Sep 2 13:27:57 CEST 2008
Hi
> I think that I'll have to rely on userFunc only, I just wanted to avoid
> this but there's not always a built-in TS solution.
There's nothing on TSREF/userFunc in conditions [1] about caching. As I
understand this, my userFunction will be called for every request and
the content rendering caching will be done according to the boolean
return of my condition. That is, I will possibly have 2 cache records
for every page. That is not the point. The problem is that my method
will be called AFAIU for every request, although it depends only on the
UID of the page, not on an external parameter such as the remote IP
address or the daytime. That is, once the page has been generated, the
check is not needed anymore.
Can I somehow prevent these unwanted calls?
[1]
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.1.0/view/4/1/#id3973427
--
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html
More information about the TYPO3-english
mailing list