aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/caching_with_rails.md
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2012-11-09 14:52:56 +0100
committerSteve Klabnik <steve@steveklabnik.com>2012-11-09 14:52:56 +0100
commit4d61d1f8f58f7db6f2bffee52cc2debc66ba7657 (patch)
tree6cd0be0d583b406a0b5446bc6c34e168aeab5c9b /guides/source/caching_with_rails.md
parent3738ef292ac9000cf2e66e91fed61ed939daf59a (diff)
downloadrails-4d61d1f8f58f7db6f2bffee52cc2debc66ba7657.tar.gz
rails-4d61d1f8f58f7db6f2bffee52cc2debc66ba7657.tar.bz2
rails-4d61d1f8f58f7db6f2bffee52cc2debc66ba7657.zip
Fix default cache store documentation.
It's actually the FileStore. Fixes #8130.
Diffstat (limited to 'guides/source/caching_with_rails.md')
-rw-r--r--guides/source/caching_with_rails.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/caching_with_rails.md b/guides/source/caching_with_rails.md
index 08f1ef879d..d314303c28 100644
--- a/guides/source/caching_with_rails.md
+++ b/guides/source/caching_with_rails.md
@@ -345,8 +345,6 @@ config.cache_store = :memory_store, { :size => 64.megabytes }
If you're running multiple Ruby on Rails server processes (which is the case if you're using mongrel_cluster or Phusion Passenger), then your Rails server process instances won't be able to share cache data with each other. This cache store is not appropriate for large application deployments, but can work well for small, low traffic sites with only a couple of server processes or for development and test environments.
-This is the default cache store implementation.
-
### ActiveSupport::Cache::FileStore
This cache store uses the file system to store entries. The path to the directory where the store files will be stored must be specified when initializing the cache.
@@ -359,6 +357,8 @@ With this cache store, multiple server processes on the same host can share a ca
Note that the cache will grow until the disk is full unless you periodically clear out old entries.
+This is the default cache store implementation.
+
### ActiveSupport::Cache::MemCacheStore
This cache store uses Danga's `memcached` server to provide a centralized cache for your application. Rails uses the bundled `dalli` gem by default. This is currently the most popular cache store for production websites. It can be used to provide a single, shared cache cluster with very a high performance and redundancy.