3

I'm using Boost and Drupal internal cache on two different websites and i m remarking that the site with internal cache is more quickly than the site with the Boost module .
So I'm asking which between the two methodes are suitable ?
Thank you very much

  • 4
    This needs more information. Boost, properly configured, skips a Drupal bootstrap (and actually avoids all PHP) entirely, so would always be faster than the built in cache. However, Boost is certainly not a drop-in module. It requires customizing the .htaccess file among other things. – jhedstrom Oct 30 '12 at 3:15
  • i already well configured my boost module and edited my htacess file – mohammed amine bourkadi Oct 30 '12 at 4:55
6

Boost bypasses execution of Drupal's PHP and serves static files. So unless you have other problems, it should always be much faster than the standard Drupal cache. Be aware that it only works for anonymous users.

View source on your pages when running boost and make sure they have a comment at the end that says cached by boost. Boost puts that comment there by default. If you haven't disabled it, and it's not there, boost isn't working properly. It's usually caused by incorrect or missing .htaccess rules. If you don't see this comment, you won't see an error on the status page. Your site will work normally, but is not being cached.

It looks like this:

</body>
</html>
<!-- Page cached by Boost @ 2012-10-30 15:01:23, expires @ 2012-10-31 15:01:23 -->
  • Thank you very much but where exactly i have to see the boost comment? because i installed the module like it is indicated and the drupal status is fine, thank you – mohammed amine bourkadi Oct 30 '12 at 20:07
  • Added example to answer. You may not see an error on the status page if your .htaccess rules are not correct. – Chris Miller Oct 31 '12 at 1:50
  • Here is how i did: i copied the code generated by the boost module and i past it into the .htaccess file – mohammed amine bourkadi Oct 31 '12 at 14:48
  • Yes and on certain server configurations I've seen that not work. Are you seeing the comments in the source? – Chris Miller Oct 31 '12 at 16:06
  • Unfortunatley no – mohammed amine bourkadi Nov 1 '12 at 14:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.