Overview

Namespaces

  • Cloudflare
    • Organizations
      • Firewall
        • AccessRules
    • User
      • Billing
        • Subscriptions
      • Firewall
    • Zone
      • Firewall
      • SSL
      • WAF
        • Packages

Classes

  • Analytics
  • Cache
  • CustomPages
  • CustomSSL
  • Dns
  • KeylessSSL
  • Pagerules
  • Plan
  • Railgun
  • Settings
  • SSL
  • Overview
  • Namespace
  • Class

Class Cache

CloudFlare API wrapper

Cache

Cloudflare\Api
Extended by Cloudflare\Zone\Cache
Namespace: Cloudflare\Zone
Author: James Bell james@james-bell.co.uk
Version: 1
Located at CloudFlare/Zone/Cache.php
Methods summary
public
# purge( string $identifier, boolean|null $purge_everything = null )

Purge all files (permission needed: #zone:edit) Remove ALL files from CloudFlare's cache

Purge all files (permission needed: #zone:edit) Remove ALL files from CloudFlare's cache

Parameters

$identifier
API item identifier tag
$purge_everything

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)

public
# 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 individual files (permission needed: #zone:edit) Remove one or more files from CloudFlare's cache

Parameters

$identifier
API item identifier tag
$files
An array of URLs that should be removed from cache
$tags
Any assets served with a Cache-Tag header that matches one of the provided values will be purged from the CloudFlare cache
Methods inherited from Cloudflare\Api
__construct(), delete(), get(), patch(), permissions(), post(), put(), request(), setAuthKey(), setCurlOption(), setEmail()
Properties summary
protected array $permission_level

Default permissions level

Default permissions level

# ['read' => '#zone:read', 'edit' => '#zone:edit']
Properties inherited from Cloudflare\Api
$auth_key, $curl_options, $email
API documentation generated by ApiGen