Skip to main content

Views caching

An article from ComputerMinds - Building with Drupal in the UK since 2005
3rd Aug 2010

Steven Jones

Senior Developer
Steven Jones
Hey, you seem to look at this article a lot! Why not Bookmark this article so you can find it easily in the future?

A little while ago I blogged about views content cache as a way to increase performance of your Drupal site. Today I released version 2.2 of the module, that adds lots of lovely features.

The module has basically been re-written by Young Hahn from Development seed to provide a plugable mechanism for exposing cache segments. This means that any contrib module can contribute to keeping track of the what content has changed on the site really easily. I’ve even written a small development guide to getting started, in the drupal.org handbooks.

The module should be stable and working enough to use in production sites, and should provide a really simple way to boost performance. As an example, our main blog page takes 0.34ms to grab the data from the database (query cache) but 94ms to render the results (results cache), but with the views content cache plugin, it can just load the data from cache (xcache in our case). Much faster than 94ms.
When one of us posts a new blog post, views content cache will automatically expire the views cache of the blog view. Caching with no drawbacks, awesome!

Instructions for installing and setting up the Views content cache module are on the project page.

Hi, thanks for reading

ComputerMinds are the UK’s Drupal specialists with offices in Bristol and Coventry. We offer a range of Drupal services including Consultancy, Development, Training and Support. Whatever your Drupal problem, we can help.