PHPackages                             pantheon-quicksilver/cloudflare-cache - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. pantheon-quicksilver/cloudflare-cache

ActiveQuicksilver-script[Caching](/categories/caching)

pantheon-quicksilver/cloudflare-cache
=====================================

Composer-installable script to purge Cloudflare cache when your live environment's cache is cleared

v1.0.0(4y ago)02MITPHP

Since Oct 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/pantheon-quicksilver/cloudflare-cache)[ Packagist](https://packagist.org/packages/pantheon-quicksilver/cloudflare-cache)[ Docs](https://github.com/pantheon-quicksilver/cloudflare-cache)[ RSS](/packages/pantheon-quicksilver-cloudflare-cache/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

Cloudflare Cache
================

[](#cloudflare-cache)

This composer-installable example demonstrates how to purge Cloudflare cache when your live environment's cache is cleared.

TODO
----

[](#todo)

- Quicksilver script projects and the script name itself should be consistent in naming convention. - To rename after demonstrated working with existing filenames (underscores)

### Installation

[](#installation)

While it's possible to use the script individually, this project is designed to be included from a site's `composer.json` file, and placed in its appropriate installation directory by [Composer Installers](https://github.com/composer/installers).

In order for this to work, you should have the following in your composer.json file:

```
{
  "require": {
    "composer/installers": "^1"
  },
  "extra": {
    "installer-paths": {
      "web/private/scripts/quicksilver": ["type:quicksilver-script"]
    }
  }
}
```

The project can be included by using the command, where `{quicksilver-project}` represents the name of the Quicksilver script:

`composer require pantheon-quicksilver/{quicksilver-project}:^1`

If you are using one of the example PR workflow projects ([Drupal 8](https://www.github.com/pantheon-systems/example-drops-8-composer), [Drupal 9](https://www.github.com/pantheon-systems/drupal-project), [WordPress](https://www.github.com/pantheon-systems/example-wordpress-composer)) as a starting point for your site, these entries should already be present in your `composer.json`.

Setup
-----

[](#setup)

- Copy `cloudflare-cache.json` to `files/private` of the *live* environment after updating it with your cloudflare info.
- API key can be found in the `My Settings` page on the Cloudflare site.
- I couldn't find zone id in the UI. I viewed page source on the overview page and found it printed in JavaScript.
- Add the example `cloudflare-cache.php` script to the `private/scripts` directory of your code repository.
- Add a Quicksilver operation to your `pantheon.yml` to fire the script after a deploy.
- Deploy through to the live environment and clear the cache!

Optionally, you may want to use the `terminus workflows watch` command to get immediate debugging feedback.

### Example `pantheon.yml`

[](#example-pantheonyml)

Here's an example of what your `pantheon.yml` would look like if this were the only Quicksilver operation you wanted to use.

```
api_version: 1

workflows:
  clear_cache:
    after:
      - type: webphp
        description: Cloudflare Cache
        script: private/scripts/cloudflare-cache.php
```

Note that you will almost always want to clear your CDN cache with the *after* timing option. Otherwise you could end up with requests re-caching stale content. Caches should generally be cleared "bottom up".

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1708d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/87093053?v=4)[Brian Weaver](/maintainers/namespacebrian)[@namespacebrian](https://github.com/namespacebrian)

---

Top Contributors

[![namespacebrian](https://avatars.githubusercontent.com/u/87093053?v=4)](https://github.com/namespacebrian "namespacebrian (8 commits)")[![kyletaylored](https://avatars.githubusercontent.com/u/1759794?v=4)](https://github.com/kyletaylored "kyletaylored (1 commits)")

### Embed Badge

![Health badge](/badges/pantheon-quicksilver-cloudflare-cache/health.svg)

```
[![Health](https://phpackages.com/badges/pantheon-quicksilver-cloudflare-cache/health.svg)](https://phpackages.com/packages/pantheon-quicksilver-cloudflare-cache)
```

###  Alternatives

[wp-media/wp-rocket

Performance optimization plugin for WordPress

7531.3M3](/packages/wp-media-wp-rocket)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[october/rain

October Rain Library

1601.7M83](/packages/october-rain)[rhubarbgroup/redis-cache

A persistent object cache backend for WordPress powered by Redis. Supports Predis, PhpRedis, Relay, replication, sentinels, clustering and WP-CLI.

527101.4k1](/packages/rhubarbgroup-redis-cache)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
