Sha256: b73a615d07111c52040de712e3f7dff8d8b8b8ae4c3b5ecc4f49886e6013a982
Contents?: true
Size: 355 Bytes
Versions: 5
Compression:
Stored size: 355 Bytes
Contents
module Blacksand module CachingPages extend ActiveSupport::Concern included do caches_page :show end # 覆盖 actionpack-page_caching 的方法,如果页面带参数将不会生成缓存页。例如带分页的页面。 def caching_allowed? return false if request.query_string.present? super end end end
Version data entries
5 entries across 5 versions & 1 rubygems