"Sebastien" == Sebastien BARRE <sebastien.barre(a)kitware.com> writes:
Hello,
I wrote a couple of tag extensions that really need to bypass the
cache mechanism, i.e. any page that uses that tag should always be
re-created.
I know, this obviously impact performances, but we are
talking "small
server" here, not Wikipedia :)
Nevertheless, there must be a way to achieve that, am
I wrong ? I
mean, it seems pretty reasonable that an extension might perform SQL
queries, or inspect the current context, return time-dependent values,
etc., and therefore the caching mechanism will just make them useless
most of the time.
So far, the only two settings that I know that disable
the cache are:
- User preferences: misc settings: Disable page caching
- DefaultSettings.php: $wgCachePages
In my extension callback, I tried the following code:
$wgOut->addMeta("http:Pragma", "no-cache");
$wgOut->addMeta("http:no-cache", NULL);
$wgOut->addMeta("http:EXPIRES", "TUES, 31 DEC 1996 12:00:00
GMT");
You may want to look at
<http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/14068>
for a somewhat simpler way of doing the same.
--
/Wegge <http://wiki.wegge.dk/>
<http://wiki.wegge.dk/Folk_jeg_ignorerer_paa_usenet>
mailto:awegge@gmail.com - Invitationer på FCFS basis