Posted by jspapas on August 16, 2010 at 6:59pm
Can some of the functionality that is available in Boost and similar modules, be achieved by just using Apache's mod_cache, mod_disk_ache and mod_mem_cache modules?
Can some of the functionality that is available in Boost and similar modules, be achieved by just using Apache's mod_cache, mod_disk_ache and mod_mem_cache modules?
Comments
Pressflow
Haven't looked into apaches built in caching much, but I do know you will have to send out the correct headers otherwise it will not cache the page. This will require Pressflow and most likely the external cache option. I would opt for mod_disk_cache.
http://www.philchen.com/2009/02/09/some-tuning-tips-for-apache-mod_cache...
Getting it to work with logged in vs logged out & cache expiration will be tricky.
Yeah the tricky thing will be
Yeah the tricky thing will be expiration. With Boost or Varnish Drupal tells the cache when to clear. You wouldn't have that option - you'd only be able to do a time-based expiry (Unless you wrote something to integrate with the Cache Expiration module). Unless you were getting a burst of traffic all on one URL your hit rate would likely be fairly low.
--
Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his
I'm a huge fan
Apache Worker MPM + mod_fcgid + mod_cache is by far the easiest way to get digg-proof performance out of a small server.
Couple of things:
Apache's DirectoryIndex which is used to specify index.php as the default root defeats caching for the home page. This is something to do with order of execution. Disable DirectoryIndex and use a "RewriteRule ^$ index.php"
Turn on external caching with a maximum cache lifetime.
For Drupal 7 you need
$conf['page_cache_invoke_hooks']= FALSE;
in your settings.php
For Pressflow 6, you need to hack out the 1984 Expires headers in includes/bootstrap.inc. I've read the RFC in question, and I disagree with the conclusion that this is a not-retarded thing to do. Apache agrees with me. Search for 1984 and comment out! (or re-define the function in your site's tweaks module)
I'm working on a nice recipe writeup with pretty graphs and stuff. Write me if you want some more detail.