Mediawiki purge cache on ALL files

From miscellus

Revision as of 14:36, 12 August 2014 by JerryP (talk | contribs) (Created page with "<GoogleBanner></GoogleBanner> <span style="clear:both;"> To clear the cache for '''all''' files on a MediaWiki, you need shell access. From the .../wiki/maintentance/ direc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

To clear the cache for all files on a MediaWiki, you need shell access.

From the .../wiki/maintentance/ directory issue the following command:

php purgeList.php --purge --all --namespace=0

to clear the system cache for all pages in namespace 0

MediaWiki Namespaces

A bit of lazy cut and paste to show the purpose of each namespace:


                    '0'  => '(articles)',
                    '1'  => 'Talk:',
                    '2'  => 'User:',
                    '3'  => 'User_talk:',
                    '4'  => 'Project',
                    '5'  => 'Project_talk:',
                    '6'  => 'File:',
                    '7'  => 'File_talk',
                    '8'  => 'MediaWiki:',
                    '9'  => 'MediaWiki_talk:',
                    '10' => 'Template:',
                    '11' => 'Template_talk:',
                    '12' => 'Help:',
                    '13' => 'Help_talk:',
                    '14' => 'Category:',
                    '15' => 'Category_talk:',

MediaWiki - Clear the cache of a single page

To clear the cache on an individual page on a MediaWiki the easy way is to click the view-history link, delete the word history and replace with purge, eg:

from

http://www.is-beer-a-vegetable.com/wiki/index.php?title=Mediawiki_purge_cache_on_ALL_files&action=history

to

http://www.is-beer-a-vegetable.com/wiki/index.php?title=Mediawiki_purge_cache_on_ALL_files&action=purge