Skip to content

Commit

Permalink
Fix cache_store configuration example
Browse files Browse the repository at this point in the history
  • Loading branch information
samoli committed Jun 11, 2012
1 parent 588bb6b commit 07d3466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/caching_with_rails.textile
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ h4. ActiveSupport::Cache::MemoryStore
This cache store keeps entries in memory in the same Ruby process. The cache store has a bounded size specified by the +:size+ options to the initializer (default is 32Mb). When the cache exceeds the allotted size, a cleanup will occur and the least recently used entries will be removed.

<ruby>
config.cache_store = :memory_store, :size => 64.megabytes
config.cache_store = :memory_store, { :size => 64.megabytes }
</ruby>

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.
Expand Down

0 comments on commit 07d3466

Please sign in to comment.