SimpleWP

Caching articles

Caching is the main reason a well-run WordPress site feels fast. Instead of building every page from PHP and database queries on each visit, the work is done once and the result is reused. Getting it right also means knowing when a cache should be cleared.

Two articles are filed here. One explains how WordPress caching works layer by layer, from the browser and CDN down to page caching, object caching and the database. The other is a practical reference to HTTP caching headers such as Cache-Control, ETag and Expires, with examples of sensible values for pages, images and scripts. Together they help you read what your site is doing and why.

  • HTTP Caching Headers: A Practical Reference

    Cache-Control, ETag, max-age, stale-while-revalidate — the headers that decide whether browsers re-download your site or reuse it. A working reference with recipes.

  • How WordPress Caching Works, Layer by Layer

    Browser, CDN, full-page, object, opcode, database — six caching layers stand between your visitor and your PHP. Understand what each one does and which ones you actually control.