[TYPO3] Complex cache problem?

Matthew Manderson matthew at manderson.co.uk
Sat Apr 1 21:50:18 CEST 2006

I have a site using tt_news extensively and I have a $_SESSION being set and
displayed alongside the tt_news item in list view.

The problem is that the list view is being cached by default and so changes
to this $_SESSION value are not reflected in the page view.

Now the lazy answer is to disable caching for all the tt_news list view

However, this $_SESSION is only changed once or twice by each visitor per
session and so the remaining time they are browsing the list view will be
displayed fresh and not cached causing an unnecessary server overhead.

Setting the appropriate $_SESSION is done with a userfunc and so my question
is this...

How can the cache be cleared when a userfunc is called?

The clearCacheCmd looks close but how to call the underlying function from
the userfunc.


More information about the TYPO3-english mailing list