From a25c405e00bafb192269b203c0449edfc9e648c6 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Fri, 24 Jul 2009 17:15:35 -0300 Subject: [PATCH] ActionItem1055: use memcache in production environments --- config/environments/production.rb | 2 ++ doc/README_FOR_APP.en | 1 + 2 files changed, 3 insertions(+), 0 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 91f541c..0c45bc1 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -17,3 +17,5 @@ config.action_view.cache_template_loading = true # Disable delivery errors, bad email addresses will be ignored # config.action_mailer.raise_delivery_errors = false + +config.cache_store = :mem_cache_store, "localhost" diff --git a/doc/README_FOR_APP.en b/doc/README_FOR_APP.en index 1f57e30..c377fdb 100644 --- a/doc/README_FOR_APP.en +++ b/doc/README_FOR_APP.en @@ -37,6 +37,7 @@ special its possible that the requirements list above is not complete. === Setting up a production environment +* install memcached. Study whether you need to raise the ammount of memory it uses for caching, depending on the demand you expect for your site. * copy config/ferret_server.yml.dist to config/ferret_server.yml.dist * configure the mongrel cluster: `mongrel_rails cluster::configure` ** then edit config/mongrel_cluster.yml to suit your environment. Make sure your apache configuration matches the mongrel cluster configuration, specially in respect to the ports and numbers of mongrel instances. -- libgit2 0.21.2