Class: Spree::FragmentCacheController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/spree/fragment_cache_controller.rb

Constant Summary collapse

CACHE_PATH_REGEX =
/\A(views\/spree_cache)/
CACHE_KEY =
'spree_cache'

Instance Method Summary collapse

Instance Method Details

#clear_cacheObject



7
8
9
10
# File 'app/controllers/spree/fragment_cache_controller.rb', line 7

def clear_cache
  Rails.logger.info 'Expiring fragment caching for template...'
  expire_fragment(CACHE_PATH_REGEX)
end