[SOLVED] [Drupal Boost] Boost cache is generated but not getting displayed.

| | 1 min read

A lot of Drupal users who had installed Boost have encountered a situation where the Boost cache in their Drupal site is getting generated but not being displayed. If you are facing the same situation in your Drupal site with Boost then read on to find out the solution.

Steps

  • This usually occurs if you have installed Drupal in a sub directory named drupal instead of the root directory of your host
  • First go to the following directory of your Drupal installation and open the .htaccess file
    /public_html/drupal/
  • Delete all the BOOST code from it and save the file.
  • Next got to the parent directory of your Drupal subdirectory and open the htaccess file.
    /public_html/.htacess
  • Insert all the BOOST code from the previous htaccess file into this file.
  • Next replace the line
    RewriteCond %{DOCUMENT_ROOT}/cache/perm/%{HTTP_HOST}%{REQUEST_URI}_\.

    to

    RewriteCond %{DOCUMENT_ROOT}/drupal/cache/perm/%{HTTP_HOST}%{REQUEST_URI}_\..
  • Change
     RewriteRule .* cache/normal/...

    to

    RewriteRule .* drupal/cache/normal/...
  • To summarize everything the code now read something like below
    RewriteCond %{DOCUMENT_ROOT}/drupal/cache/normal/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html -s
      RewriteRule .* drupal/cache/normal/%{HTTP_HOST}%{REQUEST_URI}_%{QUERY_STRING}\.html [L,T=text/html]
  • Finally save the file and you should see Boost working normally.

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.