Commit a25c405e00bafb192269b203c0449edfc9e648c6
1 parent
4688bc9c
Exists in
master
and in
28 other branches
ActionItem1055: use memcache in production environments
Showing
2 changed files
with
3 additions
and
0 deletions
Show diff stats
config/environments/production.rb
@@ -17,3 +17,5 @@ config.action_view.cache_template_loading = true | @@ -17,3 +17,5 @@ config.action_view.cache_template_loading = true | ||
17 | 17 | ||
18 | # Disable delivery errors, bad email addresses will be ignored | 18 | # Disable delivery errors, bad email addresses will be ignored |
19 | # config.action_mailer.raise_delivery_errors = false | 19 | # config.action_mailer.raise_delivery_errors = false |
20 | + | ||
21 | +config.cache_store = :mem_cache_store, "localhost" |
doc/README_FOR_APP.en
@@ -37,6 +37,7 @@ special its possible that the requirements list above is not complete. | @@ -37,6 +37,7 @@ special its possible that the requirements list above is not complete. | ||
37 | 37 | ||
38 | === Setting up a production environment | 38 | === Setting up a production environment |
39 | 39 | ||
40 | +* 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. | ||
40 | * copy config/ferret_server.yml.dist to config/ferret_server.yml.dist | 41 | * copy config/ferret_server.yml.dist to config/ferret_server.yml.dist |
41 | * configure the mongrel cluster: `mongrel_rails cluster::configure` | 42 | * configure the mongrel cluster: `mongrel_rails cluster::configure` |
42 | ** 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. | 43 | ** 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. |