You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Purge URL

From Wikitech-static
Revision as of 23:21, 24 April 2013 by imported>Reedy (Shorten path prefix, one line)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

purging specific URLs from Squid cache.

The example below was used to purge http://sep11.wikipedia.org/wiki/ which is a 301 redirect to an external site. [1].

The script requires a --wiki name, so in this case "aawiki" had no specific meaning but had to be added.

/home/wikipedia/common/$ echo 'http://sep11.wikipedia.org/wiki/' | mwscript purgeList.php --wiki aawiki
Purging 1 urls...
Done!