Configuring theme compression and caching

Webservers can quickly become overloaded by multiple users requesting pages that require multiple queries. Furthermore, pages that consist of lots of CSS and JavaScript files can reduce the page load time. Both of these issues can be frustrating to the end-user.

In this recipe, we will see how to enable and configure Drupal's caching, which can dramatically reduce the server response time. We will also learn how to activate aggregation of the theme's CSS files, a process that can greatly reduce the number of requests to the server per page load, and vastly improve the page load time for the end-user.

How to do it...

To begin, we will enable and configure Drupal's caching capabilities. We will then enable ...

Get Drupal 7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.