Manual:PurgePage.php

Details
purgePage.php file is a maint-scripts>Special:MyLanguage/Manual:Maintenance scripts|maintenance script to purge both internal and external caches.

This is the equivalent to action=purge () and performs the following actions:


 * Re-parses the wikitext, saves changes to the database (e.g. current expansion of magic words and templates, writes links to the database for images, links-here, categories etc.).
 * Performs a database write for page_touched>Special:MyLanguage/Manual:Page table#page_touched|page.page_touched to the current time, which has potential cascading effects to other areas of the application.
 * Purges the page's canonical URLs from File cache () and/or from external Squid/Varnish proxy (this is the part that  does).
 * In addition, individual page types (such as ) and extensions, may register additional actions. For example, when purging a File page, it also deletes thumbnails from Swift storage, and purge the URLs of all thumbnail sizes and variations (page1, page2, 120px, 320px etc. etc.)

Syntax
Give a list of page titles to purge, one per line, from standard input:

Give a list of page titles to purge, one per line, from a file:

where   contains a list of pagenames to be regenerated.