---
title: "Page Caching, Object Cache & Global Edge CDN"
description: "Tune full-page caching, APCu object caching, OPcache, cache purging, and the Hosted EZ Global Edge CDN for fast global delivery."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.hostedez.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Page Caching, Object Cache & Global Edge CDN

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](https://app.hostedez.com/dashboard), 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](/domains/spa-routing-and-headers)) |
| **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).

> **Automatic cache purge on Static Sites & WordPress**
>
> - **Static Sites**: Every archive upload or 1-click rollback in the **Deployments** tab automatically purges the Global Edge CDN cache. (If you upload files via SFTP or File Manager, click **Purge cache** manually.)
> - **WordPress**: Publishing or updating posts, switching themes, or moderating comments automatically purges the `hostedez-cache` page cache. You can also trigger a purge from the **WordPress Admin Bar** or with `wp cache flush` in the Browser Terminal.

## 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

1. **Open Site → Performance**

   Navigate to your site in [app.hostedez.com](https://app.hostedez.com/dashboard) and select the **Performance** tab.
2. **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).
3. **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](/domains/spa-routing-and-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:

```bash
# 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)'
```

Source: https://docs.hostedez.com/domains/caching-and-cdn/index.mdx
