Module: PagesCore::StaticCacheController

Extended by:
ActiveSupport::Concern
Included in:
BaseController
Defined in:
app/controllers/concerns/pages_core/static_cache_controller.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Instance Method Details

#disable_static_cache!Object



24
25
26
# File 'app/controllers/concerns/pages_core/static_cache_controller.rb', line 24

def disable_static_cache!
  @static_cache_disabled = true
end

#static_cached?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'app/controllers/concerns/pages_core/static_cache_controller.rb', line 28

def static_cached?
  !@static_cache_disabled && @static_cached ? true : false
end