Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 550 Bytes

File metadata and controls

24 lines (18 loc) · 550 Bytes

BEAR.FastlyModule

There are only two hard things in Computer Science: cache invalidation and naming things.

– Phil Karlton

Fastly CDN integration module for BEAR.Sunday

Example

use BEAR\FastlyModule\FastlyEnableSoftPurgeModule;
use BEAR\FastlyModule\FastlyPurgeModule;

// Set API key and service ID
$this->install(new FastlyPurgeModule(
    $fastlyApiKey,
    $fastlyServiceId
));

// Enable soft purge
$this->install(new FastlyEnableSoftPurgeModule());

See more at https://bearsunday.github.io/manuals/1.0/ja/cache.html