Developer Tool for Cloudflare + PHP

Cloudflare Smart Development Mode & Auto Cache Purger

Automatically enable Cloudflare Development Mode and clear cache when your files change. Built for developers who want faster updates, less manual work, and a smoother deployment workflow.

View Features
✔ Lightweight PHP script ✔ Recursive file scanning ✔ Cron-ready setup ✔ Cloudflare API integration
Cloudflare Smart Development Mode & Auto Cache Purger product image
1 Min Cron execution cycle
< 5 Min Recent file change detection
PHP No framework required

Built to make Cloudflare development easier

This script automates the annoying part of development by watching your files and triggering Cloudflare actions only when needed.

Auto Cache Purge

Purges Cloudflare cache automatically whenever a recent file change is detected, so your updates show up faster.

🛠

Development Mode

Turns on Cloudflare Development Mode to reduce caching issues while actively working on your site.

📂

Recursive Glob Scanning

Recursively scans directories and subdirectories to detect file updates across your project.

🔁

Cron Ready

Designed to run every minute from cron with minimal setup and no complicated dependencies.

🧠

Smart Trigger Logic

Uses recent modification timestamps and a local state file to avoid unnecessary repeated API calls.

🔒

Simple & Lightweight

Clean PHP code, easy to edit, easy to deploy, and ideal for freelancers, agencies, and developers.

How it works

Set it once and let it handle Cloudflare cache management automatically.

1

Upload the PHP script

Add the script to your server and set the directory you want to monitor.

2

Add Cloudflare API details

Insert your Cloudflare API token and zone ID in the config section.

3

Create a cron job

Run the script every minute so it can check for newly modified files.

4

Let it automate the rest

When a file changes within the configured time window, the script enables Development Mode and purges cache.

What’s included

Everything needed to get started quickly.

PHP source fileReady to upload and configure.
Recursive file monitoringUses glob recursion across folders and subfolders.
Cloudflare API actionsEnables Development Mode and purges cache.
State file logicPrevents repeated cache purges for the same modification event.
Easy installationSimple setup for shared hosting, VPS, or dedicated servers.
Digital download deliverySell it instantly from your own website.

Why developers buy this

Cloudflare is great for performance, but manual cache clearing slows down development. This tool saves time and keeps your workflow cleaner.

Stop clearing cache manuallyNo more logging into Cloudflare every time you push a quick change.
Speed up deploymentsUseful for live edits, staging-to-production updates, and lightweight deployment flows.
Easy to customizeAdjust folders, file checks, timing rules, and API behavior without needing a framework.
Good fit for agencies and freelancersGreat for managing multiple sites that sit behind Cloudflare.

Frequently asked questions

Helpful answers for buyers before purchase.

What do I need to use this script?

You need PHP, cron access, a Cloudflare API token, and your Cloudflare zone ID.

Does it work on shared hosting?

Yes, as long as your hosting account supports PHP and cron jobs.

Can I customize which directory gets scanned?

Yes. You can change the watched directory directly in the config section of the script.

Can I change the 5-minute file check window?

Yes. The time threshold is configurable in seconds, so you can easily increase or reduce it.

How will customers receive the file?

After successful payment, your backend can email the download or redirect to a secure download page.

Can this be expanded later?

Yes. You can add file type filters, partial purge support, email alerts, webhook triggers, or deployment integrations.

Sell your developer tool directly from your own website

Launch fast, keep full control of your branding, and start selling your Cloudflare automation script today.

Back to Top