PHP code example of putyourlightson / craft-blitz-cloudfront
1. Go to this page and download the library: Download putyourlightson/craft-blitz-cloudfront library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
putyourlightson / craft-blitz-cloudfront example snippets
// The purger type to use.
'cachePurgerType' => 'putyourlightson\blitzcloudfront\CloudFrontPurger',
// The purger settings.
'cachePurgerSettings' => [
'region' => 'us-east-1',
'apiKey' => 'p_prod_abcdefgh1234567890',
'apiSecret' => 's_prod_abcdefgh1234567890',
'distributionId' => '123456789',
'warmCacheDelay' => '5',
],