Is it possible to purge all pages in mediawiki? I've tried emptying the obejctcache table to no avail. I don't particularly want to hit each page with ?action=purge
appended. Version 1.23.3
You can either
Use the maintainance script PurgeList.php like this: php purgeList.php --purge --all
, for MW > 1.21, and php purgeList.php --all-namespaces
for MW > 1.34. Really old MW versions do not have the --all
option, so you will need a list of pages.
Use the API: API:Purge, and feed it with a list of all pages (that you can get from API:Allpages)
Invalidate all caches by setting $wgCacheEpoch
to the current time in LocalSettings.php, e.g.
$wgCacheEpoch = 20140901104232;
.
Set $wgInvalidateCacheOnLocalSettingsChange
(since MW 1.17) to achieve pretty much the same thing. Only do this if your wiki has low to moderate traffic.
Not sure if this is a good idea, but if you have access to the wiki's database you should also be able to achieve the same effect by truncating the table objectcache
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With