PHP Класс Cloudflare\Zone\Cache

Cache
Автор: James Bell ([email protected])
Наследование: extends CloudFlare\Api
Показать файл Открыть проект

Открытые методы

Метод Описание
purge ( string $identifier, boolean | null $purge_everything = null ) Purge all files (permission needed: #zone:edit) Remove ALL files from CloudFlare's cache
purge_files ( string $identifier, array $files = null, array $tags = null ) Purge individual files (permission needed: #zone:edit) Remove one or more files from CloudFlare's cache

Описание методов

purge() публичный Метод

Purge all files (permission needed: #zone:edit) Remove ALL files from CloudFlare's cache
public purge ( string $identifier, boolean | null $purge_everything = null )
$identifier string API item identifier tag
$purge_everything boolean | null A flag that indicates all resources in CloudFlare's cache should be removed. Note: This may have dramatic affects on your origin server load after performing this action. (true)

purge_files() публичный Метод

Purge individual files (permission needed: #zone:edit) Remove one or more files from CloudFlare's cache
public purge_files ( string $identifier, array $files = null, array $tags = null )
$identifier string API item identifier tag
$files array An array of URLs that should be removed from cache
$tags array Any assets served with a Cache-Tag header that matches one of the provided values will be purged from the CloudFlare cache