Sha256: 8c20e05d11c48be5617becfef214eacd94187e23b461e1295e41700a5f59b093
Contents?: true
Size: 400 Bytes
Versions: 6
Compression:
Stored size: 400 Bytes
Contents
module Alchemy class ContentSweeper < ActionController::Caching::Sweeper observe Element def after_update(element) expire_cache_for(element.contents) end def after_destroy(element) expire_cache_for(element.contents) end private def expire_cache_for(contents) contents.each do |content| expire_fragment(content) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems