Справка MediaWiki API
Это автоматически сгенерированная страница документации MediaWiki API.
Документация и примеры: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=centralnoticecdncacheupdatebanner
(main | centralnoticecdncacheupdatebanner)
- Этот модуль требует прав на чтение.
- Этот модуль принимает только POST-запросы.
- Источник: CentralNotice
- Лицензия: 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
Определённые параметры:
Other general parameters are available.
Name of the banner whose content should be purged
- Это обязательный параметр.
Language of the banner content to purge
- Это обязательный параметр.
Токен «csrf», полученный из action=query&meta=tokens
- Это обязательный параметр.
Пример:
- Purge the content of 'Banner1' from CDN cache, for English
- api.php?action=centralnoticecdncacheupdatebanner&token=ABC123&banner=Banner1&language=en [открыть в песочнице]