Ticket #8809: assets_caching_doc_patch.diff
| File assets_caching_doc_patch.diff, 1.4 kB (added by sergey, 1 year ago) |
|---|
-
asset_tag_helper.rb
old new 171 171 # 172 172 # javascript_include_tag "prototype", "cart", "checkout", :cache => "shop" # when ActionController::Base.perform_caching is false => 173 173 # <script type="text/javascript" src="/javascripts/shop.js"></script> 174 # 175 # Note: that cache file (all.js) will be NOT auto updated when one of cached file (e.g. cart.js) changed. 176 # You should remove cache file as part of your server update procedure. 174 177 def javascript_include_tag(*sources) 175 178 options = sources.last.is_a?(Hash) ? sources.pop.stringify_keys : { } 176 179 cache = options.delete("cache") … … 280 283 # 281 284 # stylesheet_link_tag "shop", "cart", "checkout", :cache => "payment" # when ActionController::Base.perform_caching is true => 282 285 # <link href="/stylesheets/payment.css" media="screen" rel="Stylesheet" type="text/css" /> 286 # 287 # Note: that cache file (all.css) will be NOT auto updated when one of cached file (e.g. cart.css) changed. 288 # You should remove cache file as part of your server update procedure. 283 289 def stylesheet_link_tag(*sources) 284 290 options = sources.last.is_a?(Hash) ? sources.pop.stringify_keys : { } 285 291 cache = options.delete("cache")