We need an option to purge cache from single files intead clear all cache for custom PHP app.
Hello, my website is a custom php application and i have Cloudflare Enterprise, but i can only delete all cache, i can not clear a single file (url). Clearing the entire cache is inefficient; every time I want to see changes to a file, I have to clear the entire cache. This is neither practical nor efficient.
Thanks!!
Jesus
-
Haul Chmp commented
I completely understand the frustration here—clearing the entire cache just to update a single file can really slow things down, especially on a live site. It would definitely be more efficient to have a per-URL or file-level purge option. Have you tried using Cloudflare’s API for targeted cache purging? It usually allows you to clear specific URLs instead of everything. Hopefully this feature becomes more accessible in the dashboard too, as it would make workflows much smoother 👍 https://bolly4u.co.uk/how-to-fix-bug-on-evebiohaztech/
-
Adrian Callen commented
I can see why that would be frustrating. Purging the entire cache every time you update a single file isn’t practical, especially for a custom PHP application. Cloudflare usually supports **single-file or URL-based cache purge through the API**, which might be a better solution for your setup. That way you can clear only the specific asset or page that changed instead of invalidating the whole cache. It’s much more efficient for maintaining performance while still seeing updates immediately.
Optimizing caching like this is really important for high-traffic sites as well. Platforms that deliver live content—such as sites where people watch futbol matches online like https://tarjetarojaplus.com rely heavily on smart cache management to keep pages fast while updating content in real time.
-
joe806root
commented
Hello, @Jesus Trujillo
You're on a Cloudflare Enterprise plan, you don't need to clear everything; simply use the Custom Purge feature in your dashboard or integrate their Purge by URL API directly into your PHP application. By https://www-concoracredit.com sending a POST request to the Cloudflare API with the specific file path, you can instantly invalidate a single asset while keeping the rest of your cache intact. For an even more "Enterprise" approach, I recommend using Cache-Tags, which allows your PHP app to group related files together and purge them all at once with a single identifier, ensuring high performance without the manual overhead.