Book Image

Drupal 7 Cookbook

By : Dylan Spencer James
Book Image

Drupal 7 Cookbook

By: Dylan Spencer James

Overview of this book

<p>Drupal 7 is a modern Content Management System famed for its flexibility and power. Using Drupal you can easily create custom functionality that would otherwise have to be purchased in many of the other leading CMSs.<br /><br />"Drupal 7 Cookbook" is filled with recipes to help you to do more with Drupal and improve your skills. Chapters range from content creation, to theming, to managing your site. You will learn how to create your own content types and use them to create Views, Blocks, and Pages. This book will take you from novice to pro in just 12 chapters.<br /><br />In a wide variety of practical recipes, you will learn how to work with views and panels, how to provide translations for your content to create a multilingual site, and to integrate your site with social media. You can develop the Zen starter theme or learn how to create custom cross-browser compatible Drupal themes, including themes for mobile devices. The Drupal 7 Cookbook contains all of the means necessary to take your skills from those of a novice Drupal user to a proficient site builder.</p>
Table of Contents (18 chapters)
Drupal 7 Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

Configuring Drupal caching


Caching is a topic at the centre of Drupal performance. It's an extremely useful feature that serves to reduce server load for anonymous users, and therefore increase page load time.

In this recipe, we will be configuring Drupal's site wide caching, caching of Views, and finally, caching of Panels.

Getting ready

In order to complete this recipe, you will need to have already created a Panel with some content. You will also need to have created a View, or enabled one of the sample views. You will also need to enable the Page manager module.

How to do it...

  1. 1. Select Configuration from the admin menu, then select Performance.

  2. 2. In the CACHING fieldset, check the options Cache pages for anonymous users and Cache blocks.

  3. 3. Set the Minimum cache lifetime to 5 min.

  4. 4. Set the Expiration of cached pages to 1 hour:

  5. 5. Click on Save configuration.

  6. 6. Select Structure from the admin menu, then select Pages.

  7. 7. Select Edit for the Panel you are setting the cache for.

  8. 8. Select...