Skip to content

Page cache - #8

Merged
batonac merged 2 commits into
mainfrom
page-cache
Jul 15, 2026
Merged

Page cache#8
batonac merged 2 commits into
mainfrom
page-cache

Conversation

@batonac

@batonac batonac commented Jul 15, 2026

Copy link
Copy Markdown
Member

No description provided.

batonac and others added 2 commits July 14, 2026 13:06
Signals page cacheability to the Worker edge cache (marks search,
preview, and logged-in views non-cacheable via X-WP-Cacheable, and sends
cache-friendly headers otherwise), and purges the edge cache on content
changes by calling the Worker's /__cache/purge endpoint (authenticated
with the CACHE_PURGE_SECRET forwarded from the Worker into the
container). The purge is a global cache-version bump, so no per-URL
enumeration is needed. Auto-installed like the other mu-plugins.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Instead of downloading WordPress at every cold start (ephemeral disk),
bake a pinned core (fetchzip 7.0.1) at /usr/src/wordpress and install it
from there on first boot, falling back to WORDPRESS_SOURCE_URL only when
the baked core is absent. This makes cold starts fast and offline, and
fixes the core version so the Cloudflare Worker can serve the exact
matching static-asset set from Worker Assets. Verified against the built
image: core is present and installs into a writable docroot.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@batonac
batonac merged commit 49b31a4 into main Jul 15, 2026
1 check passed
@batonac
batonac deleted the page-cache branch July 15, 2026 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant