xSpeed Cache is officially live! Get 50% OFF during Launch Week — Lifetime starts at just $79Lifetime from $79 — 50% OFF, Launch Week! See Plans →

See Plans →
Features
xSpeed Hub Pricing Docs Blog Scan
Appearance
Get Plugin
Pc

Warm the WordPress cache with Paperclip

Warming the WordPress cache with Paperclip means giving an agent Paperclip runs a ticket to start the xSpeed preloader through xSpeed Hub and to record each crawl's progress on the task.

list_sitesget_cache_statusget_settingsupdate_settingsstart_preloaderget_preloader_statusstop_preloader

Last updated: October 2026

Example session · Paperclip

You: Ticket: the release is out. Use xSpeed Hub to warm shop and blog, and post the counts here.

get_preloader_status(site: shop) read-only
→ idle, no run in progress

start_preloader(site: shop) changes site
→ Queued 351 URLs from the sitemap; pages are fetched in the background

start_preloader(site: blog) changes site
→ Refused: the preloader module is disabled on this site

Paperclip: shop is warming with 351 URLs queued. blog refused because its preloader module is off. Proposed fix: switch the module on with update_settings and start again. Reply to approve.

You: Approved.

update_settings(site: blog, module: preloader, values: { enabled: true }) changes site
→ Preloader module enabled

start_preloader(site: blog) changes site
→ Queued 188 URLs from the sitemap; pages are fetched in the background

Paperclip: Both sites are warming: shop with 351 URLs and blog with 188. Counts posted on the ticket.

01

How Paperclip handles this

Paperclip treats the warm-up as work with an owner. After a release ticket closes, a follow-up ticket goes to the web agent: warm shop and blog, and record the queued and processed counts. Paperclip wakes the agent, which calls start_preloader on each site, then get_preloader_status, and posts the numbers on the task. The trace shows every Hub call it made, which is the record you read if a site is slow the next morning.

The Hub reaches the agent one of two ways. On the adapter route it was added with claude mcp add as the heartbeat's OS user and signed in once in an interactive claude session. On the connector route it sits on Paperclip's Connectors page, and each Hub tool has a setting of Allowed, Ask first or Off. For this job, get_preloader_status can be Allowed, while start_preloader, stop_preloader and update_settings, which switches the module on when a site refuses, start Off and are promoted to Ask first. The Hub publishes no tool annotations, so Paperclip classifies them by name; check where each landed.

The Claude Code adapter runs headless with dangerouslySkipPermissions on by default, and a server added on the adapter skips Paperclip's action permissions and review queue, so on that route a start runs the moment the agent calls it. xSpeed Hub has no confirmation step of its own, and it treats the preloader as low-risk, asking the agent to confirm only when the site is unclear or the call covers every site. If the ticket says to wait for a reply, the agent posts its plan and stops, which is the instruction working, not a lock.

02

Set up Paperclip once

Already connected? Skip to the prompts. Alternatives and troubleshooting are on the Paperclip guide.

1Put your sites in xSpeed Hub

Sign in at app.xspeedcache.com with Google or email; the Hub is free and has no site cap. Then connect each WordPress site from its own dashboard: click Connect Hub in the xSpeed Cache top bar, then Connect via xSpeed Hub. Each site needs the free xSpeed Cache plugin.

2Add xSpeed Hub to the agent Paperclip runs

For a Claude Code agent, run this on the machine that hosts it, as the same OS user the Paperclip heartbeat runs as. Paperclip's docs say MCP wiring lives at the adapter and runtime layer, and user scope makes the Hub available to every Claude Code agent that user runs.

Terminal
claude mcp add --transport http --scope user xspeedhub https://app.xspeedcache.com/xspeed/mcp

3Sign in once, or use a token

Start claude interactively as that same user, run /mcp, choose xspeedhub and approve access on the xSpeed Hub page. Claude Code keeps the credentials, so later headless runs need no browser; claude mcp get xspeedhub shows the status. On a host with no browser, add the server with the connection token from Connect AI in the Hub instead, ideally with Read-only everywhere on.

Terminal
# Interactive sign-in
claude
/mcp

# Or a token, no browser
claude mcp add --transport http --scope user xspeedhub https://app.xspeedcache.com/xspeed/mcp \
  --header "Authorization: Bearer <your connection token>"
1 / 3

Full Paperclip setup, sign-in options and FAQ

Before you send a prompt that changes something

Reads change nothing on your sites, though contact_support emails xSpeed support. Writes run once your connection allows them, so your client's approval prompt and a read-only connection (the token's Read-only everywhere switch, or a Viewer sign-in) are the gates that matter. Paperclip's Claude Code adapter runs headless with dangerouslySkipPermissions on by default, which lets the agent call MCP tools without asking. Set it to false and a tool that needs approval does not run. A server added on the adapter does not pass through Paperclip's action permissions or review queue. A Paperclip connector does: each Hub tool is set to Allowed, Ask first or Off, and because the Hub publishes no annotations Paperclip classifies them by name, which can under-classify, so start every write Off. xSpeed Hub has no confirmation step of its own, so a write that gets past those settings runs as soon as your connection allows writes. For unattended routines, send a connection token with Read-only everywhere on, which makes the Hub refuse every write tool.

03

What do I ask?

Three prompts written for Paperclip. More for this job are below.

Prompt for Paperclip
Ticket: use xSpeed Hub to start the preloader on shop and blog after this release, and record queued and processed counts here.
Prompt for Paperclip
Weekly routine: use xSpeed Hub to read the preloader status of every site and post one line per site. Read only, start nothing.
Prompt for Paperclip
With xSpeed Hub, find out why the preloader on docs refused to start, and propose the fix on this ticket without applying it.
04

What happens, step by step

The first visitor to an uncached page pays for building it. The preloader fixes that by visiting your pages first. Through xSpeed Hub an agent can start the crawl on one site or on every site in a workspace, watch how far it has got, and stop it. The crawl runs inside WordPress in the background; the agent only starts it, reads its progress and stops it.

01

Check the cache and the preloader

get_cache_status tells the agent whether page caching is on, because there is nothing to fill when it is off. get_preloader_status shows whether a crawl is already running, so the agent does not start a second one.

02

Make sure the preloader is switched on

The preloader module is off on a fresh install, and the site refuses start_preloader until it is on. The agent can read the module with get_settings and, if you agree, switch it on with update_settings on the preloader module. The Hub tells the agent to briefly confirm intent before an update_settings call, but that is guidance to the agent, not a lock.

03

Start the crawl

start_preloader makes the site read its sitemap, follow any nested sitemap indexes, drop URLs that your cache exclusion rules skip, and queue the rest. The call returns once the queue is built; the pages are then fetched in the background, a few per run. For every site at once the agent passes site: "all", and the Hub starts the sites one after another with a one-second pause.

04

Watch the progress

get_preloader_status reports whether a crawl is running, how many URLs it has processed out of the total, the last URL it visited and the most recent errors. It works on one site at a time, so for several sites the agent calls it once per site.

05

Read what failed

A page that answers 403 or 406 usually means a server firewall is blocking the warmer by its user-agent, not that the page is broken. The status message names the user-agent to allow. A crawl that queues no URLs is reported as an error with the reason, not as a success.

06

Stop it if the server struggles

stop_preloader ends a running crawl. It is safe mid-run: pages already warmed stay cached. The agent can stop one site or every site in the workspace.

05

Reference

Start and stopstart_preloader and stop_preloader (write)
Progressget_preloader_status (read): running or not, processed out of total, last URL, recent errors
What gets crawledThe sitemap (the WordPress one at /wp-sitemap.xml unless you set another), nested indexes followed, excluded URLs skipped
NeedsThe preloader module switched on (it is off by default) and page caching on
Pages per run5 by default, 1 to 50, set in the preloader module
Schedule settingmanual, hourly, daily or weekly, set in the preloader module
Every site at oncestart_preloader and stop_preloader accept site: "all"; get_preloader_status does not
Fan-out pacingSites start one after another with a 1 second pause, one result per site
Warmer user-agentxSpeed-Warmer/1.0, the string a firewall rule would need to allow
StoppingSafe mid-run; warmed pages stay cached
Read-only accessA Viewer member's sign-in, or the connection token with Read-only everywhere on: start_preloader and stop_preloader are refused; get_preloader_status works. An OAuth sign-in by anyone else gets the scopes the client asks for.
ConfirmationNone on the Hub; your client's prompt is the gate
06

Rules worth keeping

  • Warm after a purge, not instead of one. The Hub tells the agent that starting the preloader after a purge saves the next visitor from paying for the rebuild.
  • A crawl requests every page in the sitemap, so it adds load to the origin. Start with one site, and on a small host keep Pages per run low or stop the crawl if the site slows.
  • start_preloader and stop_preloader are write tools. The Hub calls the preloader low-risk and only asks the agent to confirm when the target site is unclear or the call covers every site, so your client's approval prompt and read-only access (a Viewer sign-in, or the connection token with Read-only everywhere on) are the gates that matter.
  • A fan-out only starts the crawls. Check each site with get_preloader_status afterwards, and treat some sites failing to start as a partial result, not a failure of the whole call.

Good to know with Paperclip

Routines fire on a cron schedule or a webhook and wake an agent with nobody watching, which suits a crawl report and not a crawl start on the adapter route. The preloader module already has its own Schedule setting in WordPress, manual, hourly, daily or weekly, so let that warm the sites and give the routine a read-only prompt that posts get_preloader_status for each site on the task. For that agent, a connection token with Read-only everywhere on makes the Hub refuse start_preloader and stop_preloader whatever the adapter does. If you want a start tied to your deploy pipeline through a webhook routine, run it on the connector route with start_preloader on Ask first, so it waits for a person.

07

More prompts for this job

They work in any client connected to xSpeed Hub.

Prompt
Use xSpeed Hub to start the preloader on shop and tell me how many URLs it queued.
Prompt
Using xSpeed Hub, how far through its crawl is blog? Show processed against total and any errors.
Prompt
With xSpeed Hub, purge the cache on docs, then warm it again.
Prompt
Use xSpeed Hub to start the preloader on every site in my workspace and tell me which ones refused.
Prompt
Use xSpeed Hub to stop the preloader on shop. It is slowing the server down.
Prompt
The preloader on shop says it is disabled. Use xSpeed Hub to turn the module on, then start the crawl.
Prompt
Using xSpeed Hub, which of my sites has no running crawl and a low hit ratio?
08

Frequently asked questions

Yes. Give the agent the xSpeed Hub server, on its host with claude mcp add or on the Connectors page, and assign it a ticket. It calls start_preloader, reads get_preloader_status and records the counts on the task.

Usually not. The preloader module's own Schedule setting warms sites on a timer without an agent, and a routine on the Claude Code adapter would start crawls with no prompt. Use routines to post crawl reports, ideally through a read-only connection token.

The preloader module is off by default on a new install, and the site refuses to start a crawl until it is on. The agent can switch it on with update_settings on the preloader module, or you can turn it on in the xSpeed Cache panel in wp-admin. Page caching also has to be on, because the crawl exists to fill that cache.

It reads the site's sitemap, which is the WordPress one at /wp-sitemap.xml unless you set a different sitemap URL, follows nested sitemap indexes and skips any URL your cache exclusion rules leave out. If the sitemap cannot be read, the site falls back to a list built from its own content and says so. If nothing at all is queued, the call reports an error with the reason.

Yes. The agent passes site: "all" to start_preloader and the Hub starts the crawl on every site in the workspace one after another, returning a result per site. The Hub tells the agent to confirm that with you once first. The call only starts the crawls, so progress is read afterwards with get_preloader_status, one site at a time.

A crawl fetches your own pages, a few per run, so it adds load while it runs. The Pages per run setting controls how many, from 1 to 50 with a default of 5. If a site struggles, stop_preloader ends the crawl and the pages already warmed stay cached.

Those codes are what bad-bot firewall rules usually answer with, and they mean the warmer was judged by its user-agent, not that the page is missing. The warmer identifies itself as xSpeed-Warmer/1.0. Allow that user-agent in the server rule, or change it with the xspeed_preloader_user_agent filter, and run the crawl again.

The preloader has its own Schedule setting in WordPress: manual, hourly, daily or weekly. An agent can change it with update_settings. The Hub itself has no scheduler for agent prompts, so a prompt only runs when you send it or when your AI client runs it on a timer.

09

Keep going

Warm the cache with other agents

More with Paperclip

Documentation

From the blog

Warm the cache, from Paperclip.

xSpeed Hub is free and has no site cap. Connect your sites once and ask from the agent you already use.