Hi.
I try to make MedaWiki serve the very last webpage, instead of the cached one.
I've just found out the tip of adding 'action=purge' to the URL, but is there another way without using this URL extra code?
Thank you very much.
"thomas Armstrong" tarmstrong@gmail.com wrote in message news:bf4479300603080758h6f17a779ua9f7ecfc6a268d4@mail.gmail.com...
I try to make MedaWiki serve the very last webpage, instead of the cached one. I've just found out the tip of adding 'action=purge' to the URL, but is there another way without using this URL extra code?
[Ctrl-F5] works for IE; YMMV depending upon which browser you are using.
You can also instruct your browser to empty its cache.
Is this a private or public wiki?
Yep. It could work, but don't you consider it's a little annoying for users?
On 3/8/06, Phil Boswell phil.boswell@gmail.com wrote:
"thomas Armstrong" tarmstrong@gmail.com wrote in message news:bf4479300603080758h6f17a779ua9f7ecfc6a268d4@mail.gmail.com...
I try to make MedaWiki serve the very last webpage, instead of the cached one. I've just found out the tip of adding 'action=purge' to the URL, but is there another way without using this URL extra code?
[Ctrl-F5] works for IE; YMMV depending upon which browser you are using.
You can also instruct your browser to empty its cache.
Is this a private or public wiki?
Phil [[en:User:Phil Boswell]]
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Hi again.
Just found out a workaround: use $wgTitle->invalidateCache(); within each "switch...case" of 'index.php'.
On 3/8/06, thomas Armstrong tarmstrong@gmail.com wrote:
Yep. It could work, but don't you consider it's a little annoying for users?
On 3/8/06, Phil Boswell phil.boswell@gmail.com wrote:
"thomas Armstrong" tarmstrong@gmail.com wrote in message news:bf4479300603080758h6f17a779ua9f7ecfc6a268d4@mail.gmail.com...
I try to make MedaWiki serve the very last webpage, instead of the cached one. I've just found out the tip of adding 'action=purge' to the URL, but is there another way without using this URL extra code?
[Ctrl-F5] works for IE; YMMV depending upon which browser you are using.
You can also instruct your browser to empty its cache.
Is this a private or public wiki?
Phil [[en:User:Phil Boswell]]
Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
Hi Wikipedians,
Phil Boswell schrieb am 08.03.2006 17:07:
"thomas Armstrong" tarmstrong@gmail.com
I try to make MedaWiki serve the very last webpage, instead of the cached one. I've just found out the tip of adding 'action=purge' to the URL, but is there another way without using this URL extra code?
[Ctrl-F5] works for IE; YMMV depending upon which browser you are using.
You can also instruct your browser to empty its cache.
Perhaps I have missed something, but...
action=purge is for purging the server-side (mediawiki) cache and has nothing to do with the client-side (browser cache / ctrl-reload)
...or am I totally confused?
Bye, Tim.
Tim 'avatar' Bartel wrote:
Perhaps I have missed something, but...
action=purge is for purging the server-side (mediawiki) cache and has nothing to do with the client-side (browser cache / ctrl-reload)
...or am I totally confused?
action=purge updates the page_touched timestamp which both invalidates the server-side cache and suppresses "301 Not Modified" responses, thereby invalidating client-side caches. Editing the page will do this also, that's why it's normally not necessary to do it manually. I suspect the original poster is using a MediaWiki extension which modifies the output without requiring an edit, and without declaring pages to be uncacheable.
-- Tim Starling
I found this in DefaultSettings.php.. It might help if you want to pretty up the action=purge part
/** * To set 'pretty' URL paths for actions other than * plain page views, add to this array. For instance: * 'edit' => "$wgScriptPath/edit/$1" * * There must be an appropriate script or rewrite rule * in place to handle these URLs. */ $wgActionPaths = array();
-- If you have a penny and I have a penny, and we exchange pennies, we both have one penny but if you have an idea and I have an idea and we exchange ideas, then, we will both have two ideas.
You shouldn't need to purge the cache on each script execution. MediaWiki will attempt to touch pages as needed to ensure that things are kept up to date with respect to the internal or squid caches (if in use).
Rob Church
On 08/03/06, thomas Armstrong tarmstrong@gmail.com wrote:
Hi.
I try to make MedaWiki serve the very last webpage, instead of the cached one.
I've just found out the tip of adding 'action=purge' to the URL, but is there another way without using this URL extra code?
Thank you very much. _______________________________________________ Wikitech-l mailing list Wikitech-l@wikimedia.org http://mail.wikipedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org