aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2009-02-01 18:09:18 +0000
committerPratik Naik <pratiknaik@gmail.com>2009-02-01 18:09:18 +0000
commit898d838c7d68bf70ad00996ad5c03ada2474764c (patch)
tree6d52d9084dffbe5f73828532d7fa7efe8bb0a91a /actionpack/lib
parenta390b2629a7de7cb8a8a5370aa493283c4a3f066 (diff)
downloadrails-898d838c7d68bf70ad00996ad5c03ada2474764c.tar.gz
rails-898d838c7d68bf70ad00996ad5c03ada2474764c.tar.bz2
rails-898d838c7d68bf70ad00996ad5c03ada2474764c.zip
Revert "A small addition to the fragment caching documentation"
This reverts commit 37fac27cd9bbd1a0e0a0325a87bbfa70cc7baa47. REASON : Needs to be reworded and put in the documentation of cache() method
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_controller/caching/fragments.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller/caching/fragments.rb b/actionpack/lib/action_controller/caching/fragments.rb
index aa30b57760..95cba0e411 100644
--- a/actionpack/lib/action_controller/caching/fragments.rb
+++ b/actionpack/lib/action_controller/caching/fragments.rb
@@ -25,13 +25,6 @@ module ActionController #:nodoc:
# The expiration call for this example is:
#
# expire_fragment(:controller => "topics", :action => "list", :action_suffix => "all_topics")
- #
- # You can also pass a options hash to the call, which is passed on to the read and write methods of your fragment cache store. For example,
- # if you are using the MemCacheStore, then you can pass the :expire_in option to make the fragment expire in a certain amount of time.
- #
- # <% cache "latest_photos", :expires_in => 5.minutes do %>
- # <%= render :partial => "photo", :collection => Photo.latest%>
- # <% end%>
module Fragments
# Given a key (as described in <tt>expire_fragment</tt>), returns a key suitable for use in reading,
# writing, or expiring a cached fragment. If the key is a hash, the generated key is the return