Skip to content
Launch offer 50% off your first year of Keel Pro. See prices →

Area 03 of 11 · Caching

Pages answered in milliseconds instead of being rebuilt every time.

Ready-made pages are served from disk or memory instead of being built for every visitor.

4 sections5 free9 Pro
In plain words Without a cache, WordPress runs PHP and dozens of database queries for every single visit. Keel saves each finished page as plain HTML and hands that copy to the next visitor, before WordPress even starts. When you edit a page, its copy is cleared automatically. Logged-in users and shopping carts always get the live page.
01 First visit builds it

The page is generated normally and saved as HTML.

02 Next visits skip WordPress

A small drop-in answers from the saved copy in a few milliseconds.

03 Edits clear it

Saving a post clears that page and the pages that list it. (Pro) The cache is rebuilt in the background.

Page cache Free+ Pro extras

Saves each page as ready-made HTML, so the server can answer in a few milliseconds instead of building the page from the database every time.

Cache pages
Recommended Free

Visitors get a saved copy of each page. Logged-in users, form submissions, carts and checkouts are never cached. The cache clears itself whenever you save content, menus or settings.

Keep pages for (hours)
Free

After this a page is rebuilt on the next visit. 10 hours keeps form security tokens valid.

Never cache addresses starting with
Free

Separated by spaces. Add pages that show something different for every visitor.

Rebuild the cache in the background
Recommended Pro

After the cache is cleared, the site visits its own pages so they are cached again before real visitors arrive. Runs again once a day. Pages hidden from search engines are skipped.

Pages per minute
Free

Lower this on small hosting plans. 10 rebuilds 600 pages an hour without being noticed.

The settings marked Pro switch on with any paid plan; the rest is free. See plans

Browser cache Free

Tells browsers to keep images, styles and scripts so returning visitors do not download them again, and compresses files on the way out.

Browser caching and compression
Recommended Free

Images, fonts, CSS and JS are kept for a year (WordPress adds a version number to theme and plugin files, so changes still show up immediately). Text files are sent gzip or Brotli compressed. Written to .htaccess on Apache and LiteSpeed.

Object cache (Redis) Pro

Keeps database results in memory so wp-admin and pages that cannot be page-cached load faster. Needs a Redis server on your hosting.

Use Redis
Pro

Only turns on after a successful connection test. If Redis ever stops, the site keeps working without it.

Redis server
Pro

Usually 127.0.0.1. Your host tells you if it is different, or gives a socket path like /var/run/redis/redis.sock.

Port
Pro

6379 is the standard Redis port. Use 0 with a socket path.

Password
Pro

Only if your Redis server requires one.

Database number
Pro

Use a different number for every site that shares the same Redis server.

This whole section is part of Keel Pro, on every paid plan. See plans

REST API cache Pro

Saves REST API answers so a headless front end, app or widget gets content in milliseconds.

Cache REST API answers
Pro

Only public GET requests from visitors who are not logged in are cached. The cache clears itself whenever content, menus or settings are saved.

Keep answers for (minutes)
Pro

A safety limit; saving content clears the cache straight away anyway.

Never cache routes starting with
Pro

Separated by spaces. Carts, forms and anything personal belong here.

This whole section is part of Keel Pro, on every paid plan. See plans

Good to know

Logged-in users, carts, checkouts and URLs you exclude are never cached.

Deactivating Keel removes the drop-in and the cache folder; nothing is left behind.

(Pro) Redis keeps database results in memory, which also speeds up wp-admin.

Questions about Caching

Then leave the page cache off and keep browser caching. Keel never fights a host cache.

"Clear cache" in the admin bar, on any page.

Five minutes from now

Give your site a keel.

Steady when traffic spikes, calm when attacks come, found when people search. Start free; go Pro when a site needs more.