[Catalyst] Re: memory usage of mod_perl process

Carl Johnstone catalyst at fadetoblack.me.uk
Tue Feb 13 09:30:09 GMT 2007


Just a couple of comments on this topic.

If you're using apache2.2 then mod_cache is available. This can be used to 
cache the result of a request either in memory or disk. Ideal for the 
situations where you want to cache the front page of your site every minute.

http://httpd.apache.org/docs/2.2/mod/mod_cache.html

Also if you want to offload all your static resources to a non-Cat server 
then the simplest way of doing that is to simply stick a full url in the 
HTML.

  <img src="http://static.example.com/images/logo.png" />

Use a config option so you can vary it:

  <img src="[% c.config.static_path %]/images/logo.png" />

Using ConfigLoader you can have different devel/live values for static_path 
too.

Carl




More information about the Catalyst mailing list