Try this:
[{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=purge}} purge]
When you edit a page, you'll see the &action=edit... it works just
like that. This means you could have a script also visit that URL to
purge the page.
e.g.:
(As an aside, I feel this functionality is abusable and should be for
administrator's only.)
Sy,
On 8/17/05, Mark Johnson <crvmp3(a)hotmail.com> wrote:
I'm confused as to how to actually use the
"?action=purge"? How do I use it
in a intra-wiki link. For example, I tried the following:
[PracticePage?action=purge|PracticePage]
But it thinks I want to create a new page called PracticePage?action=purge,
which was to be expected.
I think possibly I could solve my problem with templates but I'm not sure I
follow what it's telling me to do:
http://meta.wikimedia.org/wiki/Help:URL#Use_in_templates
I seem to only be able to make the purge option work for external links (or
fully qualified links)? If I use a fully qualified url then MW marks it as
an external link (even though it's not really) and since I tweaked the
Links.php to always open external links in a new page this doesn't work the
way that I would like it to.
Would it be possible to tweak MW to parse out the parameters after the '?'
to so the the page is created correctly and then loaded correctly when
called or would that cause a lot of heartburn, or do would you suggest to
use a Template?
My current hack is to have a cron job running that updates the rows within
the 'page' table for pages that I don't want cached with the current
timestamp to fool MW into thinking the page has been touched.
Thanks!
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org
[mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Sy
Sent: Wednesday, August 17, 2005 8:57 AM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Date variables in MW do not refresh automagically
On 8/17/05, Rowan Collins <rowan.collins(a)gmail.com> wrote:
On 17/08/05, Sy <sy1234(a)gmail.com> wrote:
I wonder if you can make a [[Template:now]] with
that content, and
then call that template from your page.. I think templates might act
differently than regular pages.
No, they still get cached; it's just that when they *do* get editted,
they automatically purge the caches of pages including them, as well
as their own.
?action=purge is really cool.
I guess this means that I could badge pages with a template and purge that
template as a way of "bulk-purging" multiple pages. Wicked.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l