aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2011-10-25 22:22:43 +0200
committerJosé Valim <jose.valim@gmail.com>2011-10-25 22:23:25 +0200
commit771ca79f74db1e5a19703ad92472515dbebb70c7 (patch)
tree305ea727831e5d72fedcee48349946388e08c050 /railties/guides
parent2856d74db74df4fb4cf01b62861f59343155ec64 (diff)
downloadrails-771ca79f74db1e5a19703ad92472515dbebb70c7.tar.gz
rails-771ca79f74db1e5a19703ad92472515dbebb70c7.tar.bz2
rails-771ca79f74db1e5a19703ad92472515dbebb70c7.zip
Revert "Merge pull request #3395 from bdurand/fix_file_store_cleanup"
Tests were failing on Travis-CI. This reverts commit 79d01a8f16e20c556a086a2f07e3ccb4400f9819, reversing changes made to b838570bd69ff13d677fb43e79f10d6f3168c696.
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/caching_with_rails.textile6
1 files changed, 1 insertions, 5 deletions
diff --git a/railties/guides/source/caching_with_rails.textile b/railties/guides/source/caching_with_rails.textile
index 721c791a33..4273d0dd64 100644
--- a/railties/guides/source/caching_with_rails.textile
+++ b/railties/guides/source/caching_with_rails.textile
@@ -289,11 +289,7 @@ ActionController::Base.cache_store = :file_store, "/path/to/cache/directory"
With this cache store, multiple server processes on the same host can share a cache. Servers processes running on different hosts could share a cache by using a shared file system, but that set up would not be ideal and is not recommended. The cache store is appropriate for low to medium traffic sites that are served off one or two hosts.
-Note that the cache will grow until the disk is full unless you periodically clear out old entries. You can call +ActiveSupport::Cache::FileStore#cleanup+ to remove entries older than a specified time.
-
-<ruby>
-Rails.cache.cleanup(:not_accessed_in => 2.days)
-</ruby>
+Note that the cache will grow until the disk is full unless you periodically clear out old entries.
h4. ActiveSupport::Cache::MemCacheStore