Page MenuHomePhabricator

action=purge broken
Closed, InvalidPublic

Description

https://www.mediawiki.org/w/index.php?title=MediaWiki&action=purge redirects to https://www.mediawiki.org/wiki/MediaWiki

  1. Why?
  2. Was the purge run? I fear not:

Article.php uses

$request = $this->getContext()->getRequest();
$purge = $request->getVal( 'action' ) == 'purge';

Test yourself: Add this console.log to it and run action=purge

echo "<script>console.log('action: ". $request->getVal( 'action' ) ."');</script>";

Confirmed on 1.22.12 and latest on mediawiki.org

Sorry if this is false alarm but nobody was able to answer me this and need to to check action=purge for flushing memcache.


Version: unspecified
Severity: critical

Details

Reference
bz71978

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:49 AM
bzimport set Reference to bz71978.
bzimport added a subscriber: Unknown Object (MLST).

I think that's right. If you're logged in, a purge will just run and redirect you.

Try visiting https://www.mediawiki.org/w/index.php?title=MediaWiki&action=purge when not logged in. You've got a button to press

RESOLVED WORKSFORME?

In IRC the devs told me purging works but grabbing the action parameter after that makes no sense.

So my problem is that in an extension I cannot determine wether the page was purged or not. But that's essential for the output of memcached queries.

Closed as ITSCOMPLICATED.

Sorry guys.