Edge Architecture & Caching
How Workers, SQLite Durable Objects, R2, and partitioned cache epochs deliver sub-20ms Ghost.
One Durable Object per publication
Traditional Ghost hosts spin up a heavy Node.js process and MySQL 8 database for every blog (~512MB–1GB RAM idle). spooky.sh replaces that entire stack with a Cloudflare Worker + one hibernating SQLite Durable Object per publication.
SQLite lives directly inside the Durable Object process — meaning zero network hops between application code and database queries, strict cryptographic tenant isolation, and zero idle memory cost.
Partitioned edge caching with instant invalidation
Public HTML, Content API responses, RSS feeds, sitemaps, media variants, and theme assets are cached at Cloudflare's edge across three isolated epoch buckets (content, media, theme).
Editing a post or setting rotates only the content epoch in milliseconds — leaving immutable media and theme caches 100% warm.