Innoweb\Fastly\Fastly
Synopsis
class Fastly
implements
Flushable
{
- // constants
- const SITETREE_STRATEGY_SINGLE = 'single';
- const SITETREE_STRATEGY_PARENTS = 'parents';
- const SITETREE_STRATEGY_ALL = 'all';
- const SITETREE_STRATEGY_SMART = 'smart';
- const SITETREE_STRATEGY_EVERYTING = 'everything';
- // members
- private static boolean $flush_on_dev_build = true;
- private static $sitetree_flush_strategy = self::SITETREE_STRATEGY_SMART;
- private static array $always_include_in_sitetree_flush = ;
- private static string $api_url = 'https://api.fastly.com';
- private static string $service_id = '';
- private static string $api_token = '';
- private static boolean $soft_purge = true;
- private static boolean $verify_ssl = true;
- private static string $debug_log = '';
- // methods
- public static void flush()
- public static void flushAll()
- public static void flushImage()
- public static void flushFile()
- public static void flushSiteTree()
- public static void flushURL()
- protected static void performFlush()
- protected static void checkConfig()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
- SilverStripe\Core\Injector\Injectable
Implements
- SilverStripe\Core\Flushable
Constants
Name | Value |
---|---|
SITETREE_STRATEGY_SINGLE | 'single' |
SITETREE_STRATEGY_PARENTS | 'parents' |
SITETREE_STRATEGY_ALL | 'all' |
SITETREE_STRATEGY_SMART | 'smart' |
SITETREE_STRATEGY_EVERYTING | 'everything' |
Members
private
- $always_include_in_sitetree_flush
- $api_token
- $api_url
- $debug_log
- $flush_on_dev_build
- $service_id
- $sitetree_flush_strategy
- $soft_purge
- $verify_ssl
Methods
protected
public
- flush() — Implementation of Flushable::flush() Is triggered on dev/build and ?flush=1.
- flushAll()
- flushFile()
- flushImage()
- flushSiteTree()
- flushURL()