// hosting explained

Edge cache vs CDN vs page cache: what each one does for WordPress

Hosts list five kinds of cache and it sounds like marketing. Each one removes a different step between a visitor and your server.

KEY TAKEAWAYS

  • CDN: copies images, CSS and JS to servers near visitors.
  • Edge cache: also copies whole HTML pages, so most visits never reach your server.
  • Page cache: stores built pages on your server.
  • Object cache: keeps database query results in memory for uncached pages.
  • OPcache: keeps compiled PHP in memory.

The layers, from visitor to database

LayerStoresHelps
CDNStatic files near visitorsImages, CSS, JS load faster worldwide
Edge cacheFull HTML pages at edge locationsMost page views skip your server completely
Page cacheBuilt pages on the originRepeat views don't run PHP
Object cacheDatabase results in memoryUncached pages (carts, admin) run faster
OPcacheCompiled PHPEvery PHP request is cheaper

Pressable includes all five, with the Edge Cache at 28 locations. Carts, checkouts and logged-in sessions are never served from it, and that's why a store still needs PHP workers.

Pressable Cache settings: Edge Cache, Defensive Mode, Cache Preload and Object Cache
Pressable cache controls.
Pressable Edge Cache explainer: pages and files cached at 28 locations worldwide
Edge Cache explained in the dashboard.
Pressable Cache Preload (beta) re-warms pages after a full cache purge
Cache Preload warms pages after a purge.

Practical tips

  • Don't stack a caching plugin's page cache on top of a host's edge cache unless the host recommends it.
  • After a full purge, the first visitors are slow; preloading fixes that.
  • If your audience is far from your origin server, the edge cache matters more than the data center choice.

Keep reading

WRITTEN BY

Fathi Arfaoui

Fathi Arfaoui has helped people choose web hosting, start blogs and build WordPress sites since 2013. He founded SiteHostingFinder to replace opinion-based hosting reviews with real prices and public data. He has been a HostGator customer since 2013 and has hosted 40-50 WordPress sites on Pressable since 2017.