Jump to content

Regenerate cached special pages

From Wikitech
This information is outdated. Since October 2025, some of the expensive query pages on large wikis are disabled in production via $wgExternalQuerySources and instead pull data from https://analytics.wikimedia.org/published/datasets/querypage/. There is a monthly Airflow job in that queries Hadoop and publishes the result there. This includes MostTranscludedPages and MostCategories for enwiki, frwiki, and commonswiki. These may not be updated by the below instructions. See also: phab:T309738.

Some special pages (like Special:AncientPages) are cached in the database and only get updated periodically. If you need to manually regenerate a cached special page (which should rarely be necessary), you can do so from a deployment server and running the following command:

mwscript-k8s -- maintenance/updateSpecialPages.php --wiki=<wiki-database> --only=<name-of-special-page>

For example:

mwscript-k8s -- maintenance/updateSpecialPages.php --wiki=testwiki --only=AncientPages

If you need to regenerate a cached special page across all wikis:

mwscript-k8s --dblist=all -- maintenance/updateSpecialPages.php --only=<name-of-special-page>