Skip to content

Page Caching, Object Cache & Global Edge CDN

Tune full-page caching, APCu object caching, OPcache, cache purging, and the Hosted EZ Global Edge CDN for fast global delivery.

Updated View as Markdown

Hosted EZ accelerates every site with HTTP/2 & HTTP/3 (QUIC), TLS 1.3, and Brotli & gzip compression out of the box. Under Site → Performance in app.hostedez.com, you can inspect container telemetry, toggle origin caching layers, purge caches in one click, and enable the Global Edge CDN.

Built-in caching layers by runtime

Runtime Full-Page Cache Object Cache Bytecode / Asset Delivery
Static Site Direct nginx static serving (no PHP) N/A gzip_static + Brotli; assets cached 7d by default, HTML no-cache, must-revalidate (customizable in Static Delivery)
WordPress Static HTML cache (hostedez-cache MU-plugin, direct Apache serve, auto-purge on post/theme updates) Isolated per-site APCu store PHP OPcache + direct nginx static asset serving (1y immutable for /wp-content/ and /wp-includes/)
Drupal Nginx tmpfs anonymous page microcache (10m TTL; bypasses SESS/SSESS cookies, query strings, /admin, /user, /jsonapi) Isolated per-site APCu (ChainedFast + page/render bins) PHP OPcache + direct nginx static asset serving
Nextcloud Nginx theming microcache (7d for /apps/theming/) Isolated per-site APCu PHP OPcache + direct nginx static asset serving
Laravel & Custom PHP Configurable toggle (for standard cacheable routes) Isolated per-site APCu PHP OPcache (32 MiB Starter / 64 MiB Business & Pro)

Toggling origin caches

In Site → Performance, you can switch Page cache and Object cache on or off independently without restarting your site:

  • Turn Page cache off temporarily while debugging dynamic WordPress or Drupal personalization plugins.
  • Keep OPcache enabled in production (visible in the telemetry table along with live memory utilization).

Purging the cache

Click Purge cache in the top-right corner of Site → Performance to clear:

  1. Cached HTML pages and origin cache files (the confirmation banner reports the exact file count and bytes freed).
  2. In-memory object/OPcache generations (on PHP/CMS sites).
  3. Global Edge CDN edge cache (when CDN is active on the site).

Global Edge CDN

Hosted EZ’s Global Edge CDN serves your site through a global anycast edge network with edge TLS termination, origin shielding, and instant cache invalidation.

Eligibility & pricing

  • Pro plan: Included free across all sites on your account.
  • Starter & Business plans: Available as the Global Edge CDN account-wide add-on for $10/mo (or $100/yr), covering every site on your account. Add it in Dashboard → Billing → Add-ons.

Enable or disable Global Edge CDN per site

Open Site → Performance

Navigate to your site in app.hostedez.com and select the Performance tab.

Toggle Global Edge CDN

In the Global Edge CDN card, switch the toggle On. Status transitions from Provisioning to Active automatically (typically within a minute).

Verify edge delivery

Once Active, both your preview domain and connected custom domains benefit from edge caching according to your site’s Cache-Control and CDN-Cache-Control headers.

Controlling CDN caching with headers

  • Static Sites: Use Custom Response Headers to set Cache-Control: public, max-age=31536000, immutable on hashed asset prefixes (/assets, /_astro, /_next/static) and Cache-Control: no-cache, must-revalidate on /.
  • Password-Protected Directories & Maintenance Mode: Hosted EZ automatically emits Cache-Control: private, no-store (for Basic Auth) and CDN-Cache-Control: no-store (for Maintenance Mode) so private content and temporary 503 notices are never cached at the edge.
  • WordPress & Drupal: Logged-in sessions and admin paths bypass full-page caching automatically.

Inspecting cache headers

Use curl to inspect cache status headers from your terminal:

# Check Cache-Control, HTTP protocol, and origin cache status headers
curl -sI https://example.com/ | grep -iE '^(http|cache-control|x-hostedez-cache|alt-svc)'
Navigation

Type to search…

↑↓ navigate↵ selectEsc close