[Drupal] How to configure Boost in Drupal 7?

| | 2 min read

Boost is a Drupal module which provides static page caching for anonymous users. Boost caches a page when a user first visits a page and the the succeeding users are given the cached version of the page. The biggest advantage of Boost is that it works well in shared hosting environments and it provides fresh content for logged in users. Read on to know how to configure Boost in a Drupal 7 website.

Steps

  1. Download and extract the latest version of Boost 7.x module. Upload the Boost folder to sites/all/modules folder of your Drupal site.
  2. Then go to Configuration->Search and metadata->Clean URLs. Ensure that Drupal's clean URLs are enabled and working correctly. Otherwise enable Drupal's clean URLs.
  3. Go to Admin->modules and enable the Boost module.
  4. After the module has been installed goto Administer->->System->Boost->Boost settings and review the default settings.
  5. Then go to Administer->Configuration->System->Boost->File system and specify the root cache directory and normal cache directory.cache and normal folders are writable(unix permission 0775) by the webserver.
  6. Review the other default Boost settings .
  7. Generate the Boost .htaccess rules from Administer->Configuration->System->Boost->.htaccess->.htaccessgeneration
    and copy the rules.
  8. Paste the rules in to .htaccess file as shown below .
    If your site is running in a VirtualDocumentRoot at http://example.com/,
    uncomment the following line:
    RewriteBase / |---paste the generated rules right here in .htaccess file---|

    Pass all requests not referring directly to files in the filesystem to
    index.php. Clean URLs are handled in drupal_environment_initialize().

  9. Check the Drupal Status Report for any issues. Go to Administer->Reports->Status report.

If you have followed the steps correctly, Boost should be delivering cached content by now and you should see a noticeable improvement in performance.

We would love to hear your feedback on this article through the comments box found below