Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "A small addition to the fragment caching documentation"

This reverts commit 37fac27.

REASON : Needs to be reworded and put in the documentation of cache() method
  • Loading branch information...
commit 898d838c7d68bf70ad00996ad5c03ada2474764c 1 parent a390b26
@lifo lifo authored
Showing with 0 additions and 7 deletions.
  1. +0 −7 actionpack/lib/action_controller/caching/fragments.rb
7 actionpack/lib/action_controller/caching/fragments.rb
@@ -25,13 +25,6 @@ module Caching
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.