RE: [SAC] Caching website

Yes, let's turn it on for at least a 1 hour interval.

Also, we should set up some mod_expires rules in the theme directory so
that static files like css and image files are cached locally for at
least "access + 1 day". I do this on one of my hobby sites with
something like:

ExpiresActive
ExpiresByType text/css "access plus 1 day"
ExpiresByType image/png "access plus 1 day"
ExpiresByType image/gif "access plus 1 day"
ExpiresByType image/jpg "access plus 1 day"

I also enable gzip content compression via PHP as another method that
saves on bandwidth (at cost of CPU) and improves perceived performance.
This isn't on a Drupal site though; no idea how it interacts with gzip
compression.

Jason

-----Original Message-----
From: sac-bounces@lists.osgeo.org [mailto:sac-bounces@lists.osgeo.org]
On Behalf Of Tyler Mitchell
Sent: Monday, January 15, 2007 11:24
To: System Administration Committee Discussion/OSGeo
Subject: [SAC] Caching website

We have an option to turn on/off caching within Drupal. At what point
should we consider this?
Any ideas? It is currently turned off. There is a minimal cache
lifetime from "none" to "1 day".

Tyler
_______________________________________________
Sac mailing list
Sac@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/sac

On 15-Jan-07, at 11:54 AM, Jason Birch wrote:

Yes, let's turn it on for at least a 1 hour interval.

Okay, I've enabled caching with a 1 hour minimal cache lifetime. That seems high to me though I don't know how Drupal determines when (if at all) to regenerate content otherwise.

Also, we should set up some mod_expires rules in the theme directory so
that static files like css and image files are cached locally for at
least "access + 1 day". I do this on one of my hobby sites with
something like:

ExpiresActive
ExpiresByType text/css "access plus 1 day"
ExpiresByType image/png "access plus 1 day"
ExpiresByType image/gif "access plus 1 day"
ExpiresByType image/jpg "access plus 1 day"

I also enable gzip content compression via PHP as another method that
saves on bandwidth (at cost of CPU) and improves perceived performance.
This isn't on a Drupal site though; no idea how it interacts with gzip
compression.

I'll leave this to someone braver than me :slight_smile: I'm not sure how one would do this...

Tyler