nswdpc/silverstripe-oldmantium 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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/

  1. Create Custom Token, give it a name
  2. Zone / Cache Purge / Purge
  3. Include Zone / Specific Zone / < zone >
  4. Client IP Address filtering: restrict access to token
  5. 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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2020-12-21