Performance

How does caching work in Drupal?

Question

In my experience, there seems to be a lot of misunderstanding how Drupal caching works. I'm not talking about advanced caching mechanisms like Varnish, APC or memcache here, I'm talking about the core Drupal caching: page cache and block cache which are available in Drupal 7 core. Drupal 6 is similar but works a but differently because page caching was simplified for Drupal 7 (e.g. aggresive mode is now a available as a settings.php var) and the entire system also has become pluggable.

Drupal blocks as Edge Side Includes

Drupal blocks as Edge Side Includes
Edge Side Includes (ESI) are a way to tell your reverse proxy (e.g. Varnish) that some parts of the page should get some special attention. For example a shorter expire time (TTL) or if they should be cached by USER, PAGE or by ROLE. If you know your site well enough, you can provide some advanced caching for authenticated users this way.
Subscribe to RSS - Performance

About

This is the company blog of
Drupal specialist Merge.nl

We are located in Tilburg (Netherlands) and build websites using Drupal. More about us.

Content on this blog is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Netherlands License.

Creative Commons License

Recent Comments

Social