How to Configure Caching (2026): Four Layers, One Order

Disclosure: WebFin is reader-supported. If you buy hosting through links on this page, we may earn a commission at no extra cost to you. Commissions vary between providers and our ratings do not — here’s our full disclosure.

Caching has four layers, and they are worth enabling in a specific order. Page caching first, because it does most of the work. Then browser headers, then object caching if your host offers it, then an edge network. What matters more than any of them is the exclusion list: a cached cart can show one customer’s basket to another, and that single mistake undoes every speed gain.

How to Configure Caching: The Short Answer

Turn on page caching at the server level if your host has it, or with one plugin if not. Set long expiry headers on images, CSS and scripts. Exclude cart, checkout, account pages and logged-in users from the page cache. Add object caching when the dashboard or a member area is slow. Add an edge network when visitors are far away. Never run two page caches at once.

See Kinsta Plans →
Cloudflare Enterprise on every plan and performance monitoring in the dashboard. Starter is $35.00 a month flat.

The Four Layers, and What Each One Does

Page cache. Stores the finished HTML so the server does not rebuild it. This is the largest single win for a blog, a brochure site or a catalog page.

Browser cache. Expiry headers tell a visitor’s browser to keep images and scripts, so a second page view downloads almost nothing.

Object cache. Redis or Memcached keeps query results in memory. This is the layer that helps pages a page cache cannot serve, which our guide to fixing a slow database covers.

Edge network. Copies of cached pages and files in other countries. It does nothing for uncached routes, as our guide to setting up a CDN explains.

⚠️ There is a fifth layer you do not configure: PHP bytecode caching, known as OPcache. Hosts switch it on, and there is nothing to do beyond leaving it alone.

HostMeasurementSource and date
WP EngineGlobal TTFB 65 ms, 1st of 34 hostsHostingstep, 2025 ranking, 40 locations
WP EngineUS TTFB 365 ms across 22 locationsHostingstep, 2025 ranking
WP EngineTTFB 355 ms, 349,920 checksHostingstep, Oct 2025 – May 2026
WP EngineUptime 99.976%, 10th of 14 managed hostsStudy of 14 managed hosts, 2026
WP EngineLoad 27 ms at 0% errorsHostingstep, 2026 benchmarks
Rocket.netCached TTFB 85 ms globally12-month test, Mar 2025 – Mar 2026
Rocket.netOrigin TTFB 310 ms; checkout bypasses cacheSame 12-month test
Rocket.netUptime 99.97%, seven outages in the windowHostingstep, Oct 2025 – May 2026
Rocket.netHardware score fell 8.5 → 7.5; not recommendedHostingstep, 2026, tracked since Oct 2020
Hostinger BusinessGlobal TTFB 223 ms, 5th of 34 hostsHostingstep, 2026
Hostinger PremiumGlobal TTFB 495 ms, 28th of 34; no CDNHostingstep, 2026
HostingerTTFB 707 ms; server response 246 msCybernews, June 2026
HostingerUptime 99.99%, 33 min down in 2025Hostingstep, continuous since 2021
HostingerUptime 99.93%, 6-month windowHostPro Reviews, 2026
HostingerLCP 0.607 s, 2nd of 15 hostsTechRadar, 10-week window, 2026
BluehostHardware score 9.6 of 10Hostingstep, 2026
BluehostLoad 41 ms at 0% errors after the Oracle moveHostingstep changelog, 9 Jul 2026
BluehostResponse 411 ms; uptime 99.99% across 9 outagesHostingstep, Nov 2025 – Aug 2026
BluehostGlobal TTFB 224 ms across 40 locations, cachedHostingstep Bluehost review, Jul 2026
HostGatorGlobal TTFB 1.23 s; uptime 99.68%; 762 ms at 500 usersHostingstep HostGator review, 2026
HostGatorHardware joint-highest in the field after the Oracle moveHostingstep, 1 Sep 2026 update
ChemiCloudUS TTFB 531 ms; global 460 msHostingstep, Oct 2025 – May 2026
ChemiCloudLoad 1,068 ms at a 4.2% error rateHostingstep, same window
ChemiCloudUptime 99.76%; overall 6.1 of 10, degradingHostingstep, tracked since 2021
GoDaddy sharedTTFB 751 ms; load test did not completeHostingstep, Nov 2025 – Jun 2026
GoDaddy sharedUptime 99.76%Hostingstep, Nov 2025 – Jun 2026
GoDaddy Managed WordPressTTFB 344 ms; hardware 3.8 of 10Hostingstep, 2026
GreenGeeksTTFB 395 ms North America, 447 ms EuropeLong-term independent testing, 2026
GreenGeeksTTFB 580–610 ms Asia and AustraliaSame testing window
GreenGeeksLoad 26 ms at 0% errors; WPBench 5.0 of 10Hostingstep, 2026
GreenGeeks25 outages in the window; no integrated CDN foundHostingstep, 2026
KinstaOrigin TTFB 525 ms; edge figures differHostingstep, 2026
KinstaLoad 40 ms at 0% errors; WPBench 8.8 of 10Hostingstep, 2026 reviews
DreamHostTTFB 450–500 ms bandHostingstep, 2026 benchmarks
Scala HostingUptime 99.97% across twelve monthsLive site, 40,000 monthly visitors, UptimeRobot
Scala Hosting29 ms at the 95th percentile, 50 usersk6 load test, 2026
InterServerUptime 99.98% across eighteen monthsSix production sites, UptimeRobot
InterServerLoad under 700 ms; under 1.5 s by another sourceTwo 2026 reviews
A2 HostingTTFB 150–198 ms2026 studies; LiteSpeed on Turbo tiers
IONOSGlobal TTFB 480 ms; WPBench 7.2 of 10Hostingstep, 2026 benchmarks
IONOSUptime 99.99%; load test failed at 65.4% errorsHostingstep, 2026 benchmarks
NamecheapTTFB 461 ms; global 448 ms; WPBench 5.0Hostingstep, Q4 2025; monitoring paused 30 Jun 2026
InMotionTTFB 300–500 ms sharedPublished measurement, 2026
InMotionUptime 99.97–99.99%; one account near 99.5%Several 2026 sources
HostwindsNo independent measurement found99.9999% is the company's own claim
Liquid WebNot covered by the benchmarks we citeVPS and dedicated are outside their scope
SiteGroundTTFB 632 ms; 22nd of 34 hostsHostingstep, 2026 benchmarks
SiteGroundUptime 99.96% in 2025; 193 min over 44 outagesHostingstep, full year 2025
SiteGroundWPBench 8.4 of 10; load 170 ms at 0% errorsHostingstep, Oct 2025 – May 2026
Scala HostingTTFB 465 ms; global 501 msHostingstep, 2026 benchmarks
Scala HostingWPBench 8.8 of 10; load 48 ms at 0% errorsHostingstep, 2026 benchmarks
Scala HostingUptime 99.98% across the yearHostingstep, 2026 benchmarks
CloudwaysVultr HF: load 288 ms at 1.7% errors; WPBench 7.6Hostingstep Cloudways review, 2026
CloudwaysUptime 99.996% to 99.999% across five plansHostingstep, Oct 2025 – May 2026
Independently published speed and uptime figures. We do not run our own tests, so every row names the publication and the date it measured.
Four caching layers and what each one actually speeds up

Step 1: Page Caching, Server Level if You Can

Server-level caching runs before PHP starts, which is why it is quicker than a plugin doing the same job. Hosts that offer it expose a switch in their panel or their own plugin.

If your host has none, one caching plugin is the answer. One, not two: stacked page caches produce stale pages and errors that look like bugs in the site. Turn on page caching, leave the aggressive options alone for now, and test.

Then set the lifetime by page type. An article can be cached for hours or days. A home page or a section page on a site that publishes often needs minutes, which our list of hosting for news sites covers.

Step 2: The Exclusion List

Cart, checkout and account pages. Never cached. Most ecommerce plugins register these automatically, and you should confirm rather than assume.

Logged-in users. Serve them uncached, or use a separate cache per user if the platform supports it. A forum or a membership site is almost entirely this case.

Search results and previews. Built on request, and not worth storing.

Anything with a nonce or a session. Forms, admin screens, API endpoints used by the front end.

⚠️ Test the exclusions with a real purchase, not by reading the settings screen. Add a product to a cart in one browser, then open the site in another, and confirm the second browser sees an empty cart.

What must never be cached and how to verify it

Step 3: Browser Headers

Set long expiry times on images, fonts, CSS and JavaScript, and short ones on HTML. Most caching plugins and panels do this with one setting.

The thing to get right is versioning. If a file is cached for a year, changing it means changing its name or adding a version string, otherwise returning visitors keep the old copy. Themes and plugins handle that for their own assets, and a caching plugin handles the rest.

Step 4: Object Caching, When It Helps

Object caching is worth adding when the admin area, a cart or a member dashboard feels slow while cached pages are fine. It removes repeated query work rather than page building.

Managed platforms and servers commonly offer Redis or Memcached, and shared plans commonly do not. On a server you enable it yourself, which our list of hosting for developers covers alongside the other tooling.

See Cloudways Plans →
Server-level caching layers and SSH on every tier, billed by the hour from $14.00 a month.

Step 5: The Edge, Last

An edge network is the final layer because it multiplies whatever you already have. If page caching is off, the edge has nothing to copy. If the exclusions are wrong, the edge spreads the mistake to every country.

The gain is real when visitors are distant. Hostinger records 223 ms globally on Business against 495 ms on Premium, the same company with and without a network in front.

Caching and Staging Go Together

Every change in this list is worth making on a copy first, because a bad exclusion rule is invisible until a customer sees somebody else’s cart. A staging site costs nothing on hosts that include one, and our guide to setting up a staging site covers making one in ten minutes.

Then repeat the same tests on production after the change, because staging rarely has the same traffic, the same plugins or the same edge configuration. Our list of hosting for ecommerce covers the stores where this matters most.

How to Tell It Is Working

Look for a cache header. Most caches add one, showing a hit or a miss. Two requests to the same article should show a miss then a hit.

Compare cached with uncached. Time an article and then a search page. The gap tells you which layer to work on next, as our guide to testing your site speed properly describes.

Check as a logged-in user. Your own dashboard should never come from the page cache.

Watch for stale pages. Publish a change and confirm it appears. If it does not, the purge rules need work.

The Mistakes That Cost the Most

Two page caches. A plugin and a server layer fighting each other, which produces the mysterious errors our guide to fixing a 500 error covers.

Caching the cart. The one that costs money rather than time.

Clearing everything during a spike. The cache rebuilds at the worst moment, as our guide to handling a traffic spike explains.

Aggressive options first. Minification, combining files and lazy loading break layouts. Enable them one at a time, after page caching works.

Common caching mistakes and what to do instead

Which Sites Gain Least

A forum, a membership site and a busy store gain least from page caching, because most of their traffic is logged in. There the useful layers are object caching and the server itself, which our list of hosting for forums and our list of hosting for membership sites both cover.

That is worth knowing before you spend an evening on cache settings. If nothing on your site can be cached, the answer is hardware and queries rather than configuration.

How We Research

This guide describes procedures rather than measurements, and it runs no tests. The delivery figures named here come from Hostingstep’s 2026 benchmarks, each with its window, and the comparison between Hostinger tiers is from the same project.

Caching plugins and their individual settings are outside what we review, because they change between versions. The criteria behind our scores are on our about page, and our guide to checking whether your host is throttling you covers the faults a cache cannot hide.

Caching FAQ

What order should I enable caching in?

Page caching first, then browser expiry headers, then object caching if your host offers Redis or Memcached, then an edge network. Each layer is worth more once the one before it works.

Can I use two caching plugins?

No. Two page caches produce stale pages and errors that look like bugs in the site. Use the server-level cache if your host has one, or a single plugin if it does not.

What must never be cached?

Cart, checkout and account pages, logged-in sessions, search results, previews and anything with a nonce or a form token. Test it with a real purchase rather than by reading the settings screen.

Does caching help a membership site?

Barely, because logged-in pages cannot be served from a page cache. There object caching, the database and the server hardware do the work instead.

Do I need a CDN if caching is set up?

Only if visitors are far from the server. Hostinger records 223 ms globally on Business against 495 ms on Premium, which is the same company with and without a network in front of the site.

The Verdict

Enable page caching, get the exclusions right, then add layers in order. Most of the speed arrives with the first step, and most of the trouble arrives from skipping the second.

Test as a logged-in user and with a real cart before you call it done, and add the edge network last, because it copies whatever you have configured, mistakes included. Our guide to reducing TTFB covers what to do when the cache is right and the site is still slow.

Compare Hostinger Tiers →
The content network that moves global first-byte time from 495 ms to 223 ms sits on Business. Premium holds $2.99 a month for 48 months.
Scroll to Top