https://github.com/putyourlightson/craft-blitz-cloudfront
CloudFront cache purger for the Blitz plugin for Craft CMS.
https://github.com/putyourlightson/craft-blitz-cloudfront
Last synced: 12 months ago
JSON representation
CloudFront cache purger for the Blitz plugin for Craft CMS.
- Host: GitHub
- URL: https://github.com/putyourlightson/craft-blitz-cloudfront
- Owner: putyourlightson
- License: other
- Created: 2019-04-11T19:15:16.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2025-04-02T02:50:21.000Z (about 1 year ago)
- Last Synced: 2025-05-04T01:06:51.499Z (about 1 year ago)
- Language: PHP
- Size: 111 KB
- Stars: 7
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
[]((https://packagist.org/packages/putyourlightson/craft-blitz-cloudfront))
[](https://packagist.org/packages/putyourlightson/craft-blitz-cloudfront)

# Blitz CloudFront Purger Plugin for Craft CMS
The CloudFront Purger plugin allows the [Blitz](https://putyourlightson.com/plugins/blitz) plugin for [Craft CMS](https://craftcms.com/) to intelligently purge pages cached on [AWS CloudFront](https://aws.amazon.com/cloudfront/).
**Note that Amazon CloudFront charges for invalidation requests. Since
invalidation requests can quickly add up when purging individual URLs, you
should be aware of the potential costs. PutYourLightsOn takes no responsibility
whatsoever for expenses incurred.**
> The first 1,000 invalidation paths that you submit per month are free; you pay for each invalidation path over 1,000 in a month. An invalidation path can be for a single file (such as `/images/logo.jpg`) or for multiple files (such as `/images/*`). A path that includes the `*` wildcard counts as one path even if it causes CloudFront to invalidate thousands of files.
Source: [docs.aws.amazon.com](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html#PayingForInvalidation)
## License
This plugin requires a free commercial license available through the [Craft Plugin Store](https://plugins.craftcms.com/blitz-cloudfront).
## Requirements
This plugin requires [Craft CMS](https://craftcms.com/) 3.0.0 or later, or 4.0.0 or later, or 5.0.0 or later.
## Installation
To install the plugin, search for “Blitz CloudFront Purger” in the Craft Plugin Store, or install manually using composer.
```shell
composer require putyourlightson/craft-blitz-cloudfront
```
## Usage
Once installed, the CloudFront Purger can be selected in the Blitz plugin settings or in `config/blitz.php`.
```php
// The purger type to use.
'cachePurgerType' => 'putyourlightson\blitzcloudfront\CloudFrontPurger',
// The purger settings.
'cachePurgerSettings' => [
'apiKey' => 'p_prod_abcdefgh1234567890',
'apiSecret' => 's_prod_abcdefgh1234567890',
'distributionId' => '123456789',
'condenseUrls' => false,
],
```
---
Created by [PutYourLightsOn](https://putyourlightson.com/).