Boost - Static Page Caching for Drupal

Massive web sites with tens of thousands of articles don't tend to run well on Drupal, even with aggressive caching enabled.

Judging from the reading I've been doing on the subject recently, the problem seems to be that Drupal empties its cache when a node is updated. I'm not sure how true that is but, the fact of the matter is, my site (www.freearticles.co.za) was consistently grinding to a hault at peak times and not even aggressive caching was helping.

Now, to save costs, I host the site on a shared host in the US, so setting up a proxy on the server isn't an option to me. In fact, most things people normally suggest (including optimizing the MySQL config) just isn't an option.

So I needed to find a way to improve performance while staying within the limits of the functionality available to me on a shared server.

Enter Boost.

Boost is a Drupal module that creates static HTML versions of pages visited on your site and then serves them up on subsequent requests for the same page.

So, the first time a page is accessed, it's pulled out of the database and there's all sorts of database and PHP overheads on that call. After that, requests to the same page skip PHP and the databaase altogether and serve up plain HTML.

The performance boost is ridiculously impressive. I haven't done any sort of benchmarks as that's really not my thing but I can see and feel the difference and my earnings are steadily increasing.

The module has a problem with the .htaccess file that ships with it but I've solved it for you here.

I still need to do a proper write-up of the fix but if you're reading this, you can probably handle a little techie stuff to get your site going.

Give it a shot and let us know what your results are like!

Posted in


snowwind (not verified) | Tue, 02/19/2008 - 08:49

hi, I want to how to let this module work with pathauto module, the last will create new path for different topic, If you know this, can you send email to me, thanks.

»

Norio De Sousa | Tue, 02/19/2008 - 08:56

Boost works with Pathauto right out the box. Simply configure pathauto the way you like it and then install Boost. Boost will automatically then cache nodes with automatic url-aliases in the same way as it does node/214 type nodes.

»

Moon (not verified) | Wed, 06/11/2008 - 13:03

Dear Norio

Thank you very much and you have a wonderful website

please i need your advise

I want to create a website and I want it a full static HTML pages

I have thousands of articles, pictures, audio and video files to publish

what do you suggest me to use of CMS ?

Please advise me

MooN

»

Norio De Sousa | Wed, 09/24/2008 - 11:30

Obviously use Drupal ;) I'd recommend coding up a little importer for your thousands of bits of content. Good luck!

»

meeran (not verified) | Wed, 09/24/2008 - 10:01

Hi,

Thanks for the tip. It is what I have been looking for after my webhost (POWWEB) came up with a restriction of limit on mysql queries per day and per month.

What I am wondering is, its a very good solution for the content part of the website but what about parts which needs to change? For example, banners and other ads which keep changing. Will it still keep changing? If it does not then is there a way around it?

What happens if I change the theme in the future?

Thanks alot in advance

Regards
Meeran

»

Norio De Sousa | Wed, 09/24/2008 - 11:30

If your banners are loaded using JavaScript, then you should be fine. If they're loaded in iframes, you're still OK, if they're loaded as part of the page's HTML, you're in a bit of trouble. Try and aim for JS-powered ads (AdSense, OpenX, almost anything supports this) and you'll be fine. Good luck :)

»

Post new comment

The content of this field is kept private and will not be shown publicly.

About Us

Chris Luckhardt is a Canadian web media specialist, working in industry since the late 1990s. Over the course of his career in Canada, Chris has worked with countless technologies, equally splitting his time between the worlds of design and development. Read More

Norio is a South African entrepreneur, programmer and musician who enjoys making web sites that provide a great service for people. Read More

Your Comments...