Purge Cloudflare's edge cache the moment a deploy lands
A deploy that changes a page, robots.txt or sitemap.xml can stay invisible for a while, because Cloudflare keeps the previous copy at the edge. VergCache purges it on purpose, for the whole site or for the paths you name, with one command. It runs on your own computer with your own Cloudflare token, and it also reads and writes your Cache Rules and can set up one shared Redis for the apps on a server.
Edge cache, as part of one console
Purges Cloudflare's edge cache for your site after a deploy, for the whole site or for the paths you name, with an optional shared Redis for your app servers. It runs on your own computer with your own Cloudflare token. Included with every workspace size.
- A page, a robots.txt or a sitemap can show the old version after a deploy until the edge copy expires. A purge removes it now.
- The token and the zone list stay in a file on your own computer. The console never holds your Cloudflare token.
- When Cloudflare refuses a purge you get its reason and a non-zero exit, so a deploy script does not report success it did not have.
- One shared Redis on an app server saves several apps from paying for the same expensive answer twice.
How VergCache works
Put the token in a file
Keep CF_PURGE_TOKEN and CF_ZONE_IDS in ~/.config/cloudflare/purge.env, readable only by you. Run verg cache status to see which sites are wired.
Purge
Run verg cache purge with your domain and ALL, or with the paths you changed.
Read the answer
It prints what Cloudflare purged. If Cloudflare refuses, it prints the reason and exits with a failure.
Tune the rules when you need to
verg cache rules lists the zone's Cache Rules and adds or removes one by id.
What you get with VergCache
Purge everything or named paths
verg cache purge yourdomain.com ALL clears the whole site. Give it paths such as /robots.txt and /sitemap.xml to clear only those.
Your token, on your computer
The token and the domain to zone map live in a file only you can read. The same file can serve your deploy scripts. The console shows state and does not hold the keys.
The real answer from Cloudflare
A refusal prints the reason and exits non-zero, so a script that depends on the purge knows when it did not happen.
Cache Rules, read and written
List a zone's rules with their expressions and ids, add a rule that caches or bypasses, and remove one by id. A write re-sends the existing rules with their ids, so adding one does not disturb the others.
Tiered caching and stale serving
Check or switch Cloudflare's smart tiered caching for a zone, and set whether a lapsed entry is answered from cache while it refreshes.
An optional shared Redis
One cache-only Redis container on an app server, 256 MB with least-recently-used eviction and no persistence. An app opts in with its own REDIS_URL and its own database number.
Shipping a change to robots.txt and the sitemap
What you do, in order, and what you see.
You deploy the change to your site as you always do.
On your own computer you run
verg cache purge yourdomain.com /robots.txt /sitemap.xml.VergCache reads your token and zone from the file and asks Cloudflare to purge those two URLs.
It prints
verg cache: purged 2 URL(s) on yourdomain.com.You open the page and the new robots.txt is there. If you had changed a lot,
verg cache purge yourdomain.com ALLclears the whole site instead.
Who chooses VergCache
- Teams that serve their site through Cloudflare and deploy often
- Teams whose crawler files or sitemaps keep showing the old version after a deploy
- Teams that want one shared Redis for the apps on a server without setting it up by hand
The same console also has
VergLaunch
VergAI
VergAI Command
VergMesh
VergShield
VergMind
VergVitals
VergRail
VergFit
VergForge
VergCert
VergShip
VergProof
VergVault
VergCrew
VergGate
VergKeep
VergApps
VergMail
VergPerf
Cloudverg Console
Run VergCache yourself, starting today
Sign up, then run it from the verg command line with your own Cloudflare token. VergCache is included with every workspace size, so there is nothing to add and nothing to pay for it.
VergCache on each size
- Included with every workspace size.
- It is not an add-on, so it has no price and is not counted in the All products bundle.
Questions about VergCache
What does VergCache purge?
Cloudflare's edge cache for a site, either everything for the site or the URLs you name. It does not touch your server's own caches.
Where is my Cloudflare token kept?
In a file on your own computer, ~/.config/cloudflare/purge.env, readable only by you. VergCache runs there with that token, and the console does not hold it.
What if Cloudflare refuses the purge?
You get Cloudflare's reason on screen and the command exits with a failure, so a deploy script can stop or retry.
Can it change my Cache Rules?
Yes. It lists a zone's rules, adds a rule that caches or bypasses the cache, and removes a rule by id. Reads use a rules token and fall back to the purge token.
What is the shared Redis?
One Redis container on an app server that several apps can share. It is cache only, with 256 MB, least-recently-used eviction and no persistence, so a restart loses nothing that matters. Anything that must survive a restart stays in your database.
How do apps use it?
An app sets REDIS_URL in its own environment file, with its own database number, so it cannot read another app's keys. You install, check and remove it with verg cache redis.
What does VergCache cost?
Nothing extra. It is included with every workspace size and is not an add-on.
What does it cost, and is there a trial?
Products start at $9 a month and are priced by size, and the All products bundle is every product except VergAI for one price by size. A size sets the limits and costs nothing on its own, so you pay only for the products you switch on, and you can cancel any time. Your first workspace starts with 14 days of every product at Team size, with no card. VergAI writes up to 50 explanations in the trial. After that you pay for the products you keep, and a workspace with none is read only.
Want an answer before you sign up? Talk VergCache through with a senior architect
Ninety minutes a month with a senior architect on the cloud, AI or security question that is blocking you, plus a written summary.
$450/month$405/month if you start by Dec 31
Stop waiting for the edge to catch up with your deploy
Included with every workspace size. It is not an add-on and has no price. Prefer to compare first? Read why pay when free tools exist or work out the cost.