VergCache ยท Edge cache

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.

Included with every workspace size. It is not an add-on and has no price.

Illustration of VergCache purging the edge cache for a whole site and for two named paths, and the shared Redis tier that keeps expensive answers Edge cache, after a deploy Purge the whole siteDone Purge /robots.txt and /sitemap.xmlDone Shared Redis, cache onlyRunning Cloudflare answeredYour token, on your own computerverg cache purge yourdomain.com ALL
What it does

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 it works

How VergCache works

  1. 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.

  2. Purge

    Run verg cache purge with your domain and ALL, or with the paths you changed.

  3. Read the answer

    It prints what Cloudflare purged. If Cloudflare refuses, it prints the reason and exits with a failure.

  4. 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

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.

A walk-through

Shipping a change to robots.txt and the sitemap

What you do, in order, and what you see.

  1. You deploy the change to your site as you always do.

  2. On your own computer you run verg cache purge yourdomain.com /robots.txt /sitemap.xml.

  3. VergCache reads your token and zone from the file and asks Cloudflare to purge those two URLs.

  4. It prints verg cache: purged 2 URL(s) on yourdomain.com.

  5. You open the page and the new robots.txt is there. If you had changed a lot, verg cache purge yourdomain.com ALL clears the whole site instead.

Who it is for

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

Self-serve in the 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.

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.

Every limit of every size
FAQ

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.

Monthly plan

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

Renews monthly. Cancel any time.
Prefer to pay once?

Pay $450 once for one month of the Expert architecture session. It ends on its own, nothing renews.

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.

Want Cloudverg engineers to design and run it for you? Talk to a VergCache engineer.