Boost Expire module being deprecated; how to switch to Cache Expiration

BoostI'm a huge fan of Boost for Drupal; the module generates static HTML pages for nodes and other pages on your Drupal site so Apache can serve anonymous visitors the static pages without touching PHP or Drupal, thus allowing a normal web server (especially on cheaper shared hosting) to serve thousands instead of tens of visitors per second (or worse!).

For Drupal 7, though, Boost was rewritten and substantially simplified. This was great in that it made Boost more stable, faster, and easier to configure, but it also meant that the integrated cache expiration functionality was dumbed down and didn't really exist at all for a long time. I wrote the Boost Expire module to make it easy for sites using Boost to have the static HTML cache cleared when someone created, updated, or deleted a node or comment, among other things.

However, the Cache Expiration module has finally gotten solid Boost module integration (through hook_cache_expire()) in version 7.x-2.x, and the time has come for all users of Boost Expire to switch to the more robust and flexible Cache Expiration module (see issue). Here's how to do it:

  1. Disable and uninstall the Boost Expire module (then delete it, if you wish).
  2. Download and enable the Cache Expiration module (make sure Boost is still enabled).
  3. Visit the Cache Expiration configuration page (admin/config/development/performance/expire), and set the following options:
    • Module status: select 'External expiration' to enable cache expiration for the Boost module.
    • Node expiration: check all three checkboxes under Node actions, and make sure the 'Node page' checkbox is checked below.
    • Comment expiration: check all five checkboxes under Comment actions, and make sure the 'Comment page' and 'Comment's node page' checkboxes are checked below.

For the visually inclined, see the screenshots in this comment.

I'd like to thank the 750+ users of Boost Expire for helping me make it a great and robust stopgap solution until Cache Expiration 'cached' up (heh) with Boost in D7, and the author of and contributors to both Boost and Cache Expiration for making some great and powerful tools to make Drupal sites fly!

If you're interested in some other ways to make your Drupal site faster, check out the article Drupal Performance White Paper (still in development) on my personal website.

Comments

Cache Expiration intergates with Rules and Drush, what makes it really flexible! Morover, admin may override basic settings (admin/config/development/performance/expire) on node type edit form!