Cache API
Understanding Caching in Drupal, Introduction
In Drupal 11, the caching system is one of the most sophisticated parts of the architecture. It is designed to solve a specific problem: PHP is slow, but the database is even slower.
To understand the difference between the layers, it helps to look at them as a series of "gates." If a request can be answered at an early gate, Drupal doesn't have to do the heavy lifting of building the page.
1. The Hierarchy of Cache Layers
Drupal 11 uses a "layered" approach. When a user requests a page, Drupal checks these caches in order:
Layer A: Production/External Cache (Varnish/CDN)
Recent content
-
5 hours 41 minutes ago
-
6 hours 9 minutes ago
-
6 hours 45 minutes ago
-
7 hours 41 minutes ago
-
1 week 1 day ago
-
1 week 4 days ago
-
3 weeks 4 days ago
-
3 weeks 5 days ago
-
3 weeks 6 days ago
-
4 weeks 1 day ago