\CloudflarePurger
Simple class to purge URL from CloudFlare
Synopsis
class CloudflarePurger
extends Object
{
- // methods
- public static string getEmail()
- public static string getAuthKey()
- public static string getZoneIdentifier()
- public static array getPaths()
- protected static mixed getConfigValue()
- public static array getZones()
- public static void purge()
- public static void purgeEverything()
- protected static array buildPurgeList()
Hierarchy
Extends
- Object
Methods
protected
- buildPurgeList() — Received a list of relative links to the site root. BUilds a list of absolute links that can be sent back to Cloudfalre.
- getConfigValue() — Try to retrieve a config option from the YAML config. Otherwise, try to get it from the SiteConfig.
public
- getAuthKey() — Get the Cloudflare Auth Key that will be used to call Cloudflare.
- getEmail() — Get the Cloudflare email address that will be used to call Cloudflare.
- getPaths() — Get the Paths that will be cleared when a page is saved. If your site is available under many address (e.g.: _http://example.com, https://example.com, http://www.example.com) you should specified all of those to make sure all versions get cleared.)
- getZoneIdentifier() — Get the Zone Identifier that will be used to call Cloudflare.
- getZones() — Fetch the list of Zones from CloudFlare.
- purge() — Purge the provided links from the Cloudflare cache.
- purgeEverything() — Invalidate the entire CloudFlare cache.