module Blacksand::CachingPages

Public Instance Methods

caching_allowed?() click to toggle source

覆盖 actionpack-page_caching 的方法,如果页面带参数将不会生成缓存页。例如带分页的页面。

Calls superclass method
# File lib/blacksand/caching_pages.rb, line 10
def caching_allowed?
  return false if request.query_string.present?

  super
end