DEVOPS

Nightly cache warm of top pages after purge

On a schedule, purges Cloudflare for a curated list of high-traffic pages and immediately re-requests each one to repopulate the edge cache before peak traffic.

CategoryDevOps
Enginesim
Difficultyintermediate
Triggerschedule
Steps5
Setup~15 min

How it runs

The automated pipeline, trigger to output.

  • TriggerNightly schedule fires
  • LogicLoad curated priority URL list
  • ActionCloudflare purge-by-URL for priority pagesCloudflareCloudflare
  • ActionFetch each URL to warm the edgeShell
  • OutputSlack digest of warm resultsSlack

What it does

This workflow runs on a cron schedule, purges a defined set of your most-visited pages from Cloudflare, then warms them by issuing a fetch to each URL so the edge re-caches a fresh copy. Your busiest pages are guaranteed fresh and already cached when morning traffic arrives.

When to use it

Use it when you deploy overnight or regenerate static content on a daily job and want predictable, pre-warmed edge cache for key landing pages. It avoids the first-visitor-of-the-day paying the cache-miss penalty.

How it works

  1. 1A schedule trigger fires nightly after your deploy window.
  2. 2A logic step loads the curated list of priority URLs from config.
  3. 3Cloudflare purge-by-URL clears those specific pages.
  4. 4A shell step fetches each URL to repopulate the cache and records the cache-status header.
  5. 5A Slack digest reports how many pages warmed successfully and flags any that returned a non-200 or stayed a MISS.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect CloudflareWorkers, Pages, R2, KV — the edge stack.
  2. 2
    Connect ShellRun sandboxed commands inside the workspace.
  3. 3
    Connect SlackChannels, DMs, threads, mentions.
  4. 4
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  5. 5
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  6. 6
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.