Nápověda k MediaWiki API
Toto je automaticky generovaná dokumentační stránka k MediaWiki API.
Dokumentace a příklady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=centralnoticecdncacheupdatebanner
(main | centralnoticecdncacheupdatebanner)
- Tento modul vyžaduje oprávnění ke čtení.
- Tento modul přijímá pouze požadavky POST.
- Zdroj: CentralNotice
- Licence: GPL-2.0-or-later
Request the purge of banner content stored in the CDN (front-end) cache for anonymous users, for the requested banner and language
Parametry:
Other general parameters are available.
- banner
Name of the banner whose content should be purged
- This parameter is required.
- language
Language of the banner content to purge
- This parameter is required.
- token
Token typu „csrf“ získaný pomocí action=query&meta=tokens.
- This parameter is required.
Příklad:
- Purge the content of 'Banner1' from CDN cache, for English
- api.php?action=centralnoticecdncacheupdatebanner&token=ABC123&banner=Banner1&language=en [otevřít v pískovišti]