BoxLang 🚀 A New JVM Dynamic Language Learn More...

Preside Extension: Cloudflare Tools

v0.2.0-SNAPSHOT0000009 Preside Extensions

Cloudflare Tools extension

An extension to provide Cloudflare API functionality from within a Preside application.

Initially, this is limited to purging assets from the Cloudflare cache.

Requirements

For cache purging, you will need a Cloudflare API token. The token you need is user-based, not account-based.

  • Go to My Profile, and select API Tokens
  • Click on Create Token, then Create Custom Token: Get started
  • Give the token a name
  • Add permission Zone > Cache Purge > Purge
  • Add permission Zone > Zone > Read
  • Continue to summary then Create Token
  • Make a record of your token, which will start with cfut_

Setup

You can provide your application with the token in one of two ways:

  • Set CLOUDFLARE_API_TOKEN_CACHE_PURGE environment variable (recommended)
  • Set settings.cloudflare.apiTokens.cachePurge in your Config.cfc

Usage

In the Asset Manager, whenever you Reset derivatives for a single asset, multiple assets or an entire folder, those assets will automatically also be purged from the Cloudflare cache.

Changelog

v0.2.0

  • Basic core functionality

v0.1.0

  • Initial scaffolding

$ box install preside-ext-cloudflare-tools

No collaborators yet.
  • {{ getFullDate("2026-05-08T15:55:38Z") }}
  • {{ getFullDate("2026-05-08T22:42:16Z") }}
  • 15
  • 1