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.
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.
Upload the PHP script
Add the script to your server and set the directory you want to monitor.
Add Cloudflare API details
Insert your Cloudflare API token and zone ID in the config section.
Create a cron job
Run the script every minute so it can check for newly modified files.
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.
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.
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.