How to set up Boost caching system in Drupal 7

drupal-boost-cache

Boost is a Drupal module that accelerates the performance of a site by efficient caching of pages. It can be enabled for all pages other than the ones which need to show constantly updating data.

Follow these step to configure Boost in Drupal 7

1. Goto: [Administer > Configuration > Search and metadata > Clean URLs] and ensure that Drupal’s clean URLs are enabled and working correctly on your site.

2. Unzip and upload the module folder to the sites/all/modules folder in your Drupal installation directory. Enable the module.

3. Goto: [Administer > Configuration > Development > Performance] and disable the Drupal core cache for anonymous users. Boost will not be able to generate its cache if a page is already in the Drupal core cache. This is the only core setting you must disable, others can be left enabled.

4. Goto: [Administer > Configuration > System > Boost > Boost Settings] and review the default settings.

5. Goto: [Administer > Configuration > System > Boost > File System] Make sure that the cache directory is writeable by the web server: you may need to create the directory, and set the permissions.

To check these goto: [Reports -> Status Report]

6. Review the other default Boost settings.

7. IMPORTANT – Back up the original .htaccess file from your Drupal installation directory for safe keeping. In the next step you will edit this file and any mistake may render the site unusable.

8. REQUIRED – This step is easy and required for Boost to work! Copy the custom generated htaccess rule from the [Administer > Configuration > System > Boost > .htaccess > .htaccess Generation] page and paste the rules into the Drupal .htaccess file as given instruction.

# If your site is running in a VirtualDocumentRoot at http://example.com/,
# uncomment the following line:
# RewriteBase /

Paste here .htaccess code which is generated by Boost

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

Test Boost caching is working.

1. Take Admin > Site Building > Modules > List and check whether the ‘Boost’ Module under ‘Caching’ is enabled.
Take Admin > Reports > Status Reports and Check for the following status message:

Boost | Boost installed correctly, should be working if properly configured.

2. Take the view source of every pages of your Drupal site and verify whether the line

<!-- Page cached by Boost @ 2012-08-04 12:33:19, expires @ 2012-08-11 12:33:19 -->

for more information can visit Drupal

Leave a Reply

Your email address will not be published. Required fields are marked *