PHP 클래스 Cloudflare\Zone\Cache

Cache
저자: James Bell ([email protected])
상속: extends CloudFlare\Api
파일 보기 프로젝트 열기: jamesryanbell/cloudflare

공개 메소드들

메소드 설명
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