README.md in qor_cache-0.0.3 vs README.md in qor_cache-0.0.4
- old
+ new
@@ -27,16 +27,11 @@
cache_class_method :heavy_class_method_related_to_current_season, 'current_season'
cache_field :product_code, :from => [:product, :code]
end
- cache_includes "filename", :no_cache => true, :expires_in => 5.minutes do |app|
- ...
- end
- cache_includes "filename", "cache_key..."
-
# app/models/color_variation.rb
def heavy_method_related_to_products
Product.all.map(&:id).sum
end
@@ -58,18 +53,9 @@
end
cache qor_cache_key('product') { current_user.role } do
xxxxx
end
-
- qor_cache_includes "filename"
-
-## TODO
-
- Support render :file, :url for render_qor_cache_includes
- :partial => "filename"
- :filename => "filename"
- :url => "http://xxx" -> SSI ? Rewrite ?
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)