nswdpc/silverstripe-oldmantium
最新稳定版本:v2.0.0-rc1
Composer 安装命令:
composer require nswdpc/silverstripe-oldmantium
包简介
Reinforced Cloudflare support for Silverstripe websites
README 文档
README
Purge cache handling
Features
- Versioned DataObject purging, when that DataObject can be represented by one or more URLs
- Purge hosts, tags, prefixes (for Enterprise Cloudflare accounts)
- Permissions for administration access to purging
- Purge all in zone via a queued job
Requirements
See composer.json for specifics.
Installation
composer require nswdpc/silverstripe-oldmantium
License
BSD-3-Clause
See License
Documentation
Configuration
Authentication Token
Documentation: https://developers.cloudflare.com/api/get-started/create-token/
- Create Custom Token, give it a name
- Zone / Cache Purge / Purge
- Include Zone / Specific Zone / < zone >
- Client IP Address filtering: restrict access to token
- TTL, if required
NSWDPC\Utilities\Cloudflare\CloudflarePurgeService: enabled: true auth_token: '<auth_token>' zone_id: '<zone_id>' # Optional, specify a URL to use instead of Director::baseURL() base_url: 'https://www.example.com/'
Versioned DataObject
Give a Versioned DataObject the ability to purge from Cloudflare cache
My\Namespaced\Record: extensions: - 'NSWDPC\Utilities\Cloudflare\DataObjectPurgeable'
When My\Namespaced\Record is published or unpublished, the corresponding URLCachePurgeJob will be created as a queued job.
Maintainers
Add maintainers here or include authors in composer
Bugtracker
Link to the the issue/bug tracker URL
Development and contribution
If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.
统计信息
- 总下载量: 3.7k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2020-12-21