API:Purge
From MediaWiki.org
This page is part of the MediaWiki API documentation. |
Language: | English • Deutsch • polski |
---|
Quick overview:
- Quick start guide
- FAQ
- Tutorial
- Formats
- Error reporting
- Restricting usage
- Cross-site requests
- Authentication
- Queries
- Search suggestions
- Parsing wikitext and expanding templates
- Purging pages' caches
- Parameter information
- Changing wiki content
- Watchlist feed
- Wikidata
- Extensions
- Using the API in MediaWiki and extensions
- Miscellaneous
- Implementation
- Client code
MediaWiki version: | = 1.14 |
Purging pages' caches[edit | edit source]
You can purge the cache of one or more pages using action=purge.
Parameters[edit | edit source]
titles/pageids/revids
: A list of titles/page IDs/revision IDsforcelinkupdate
: If set, updates the link tables
Example[edit | edit source]
Purging the cache of Main Page, Nonexistent and Talk:
Result |
---|
The following content has been placed in a collapsed box for improved usability. |
<?xml version="1.0" encoding="utf-8"?> <api> <purge> <page ns="0" title="Main Page" purged="" /> <page ns="0" title="Nonexistent" missing="" /> <page title="Talk:" invalid="" /> </purge> </api> |
The above content has been placed in a collapsed box for improved usability. |
Possible errors[edit | edit source]
- code: cantpurge
- info: Only users with the 'purge' right can purge pages via the API