diff options
author | Mike Gunderloy <MikeG1@larkfarm.com> | 2009-03-14 16:43:21 -0500 |
---|---|---|
committer | Mike Gunderloy <MikeG1@larkfarm.com> | 2009-03-14 16:43:21 -0500 |
commit | 4216213f0610bddbb9f283fc5a2dfbfa9be75509 (patch) | |
tree | adfc20922cc329a9f98f5abd12b2367084408d4a /railties/guides/source | |
parent | 3f631a34285953d728e66ae2456ea1e7b1eb983c (diff) | |
download | rails-4216213f0610bddbb9f283fc5a2dfbfa9be75509.tar.gz rails-4216213f0610bddbb9f283fc5a2dfbfa9be75509.tar.bz2 rails-4216213f0610bddbb9f283fc5a2dfbfa9be75509.zip |
A few more changes for caching guide
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/caching_with_rails.textile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/railties/guides/source/caching_with_rails.textile b/railties/guides/source/caching_with_rails.textile index 610bb9416e..691e21314c 100644 --- a/railties/guides/source/caching_with_rails.textile +++ b/railties/guides/source/caching_with_rails.textile @@ -424,11 +424,11 @@ ActionController::Base.cache_store = :compressed_mem_cache_store, "localhost" ActionController::Base.cache_store = MyOwnStore.new("parameter") </ruby> -+Note: config.cache_store can be used in place of -ActionController::Base.cache_store in your Rails::Initializer.run block in -environment.rb+ +NOTE: +config.cache_store+ can be used in place of ++ActionController::Base.cache_store+ in the +Rails::Initializer.run+ block in +environment.rb. -In addition to all of this, Rails also adds the ActiveRecord::Base#cache_key +In addition to all of this, Rails also adds the +ActiveRecord::Base#cache_key+ method that generates a key using the class name, id and updated_at timestamp (if available). @@ -442,7 +442,7 @@ Rails.cache.read("city") # => "Duckburgh" h3. Conditional GET support -Conditional GETs are a facility of the HTTP spec that provide a way for web +Conditional GETs are a feature of the HTTP specification that provide a way for web servers to tell browsers that the response to a GET request hasn't changed since the last request and can be safely pulled from the browser cache. |