Module: ActionController::Caching::Fragments
- Defined in:
- lib/gettext/rails.rb
Instance Method Summary collapse
- #expire_fragment_with_gettext(name, options = nil) ⇒ Object
- #fragment_cache_key_with_gettext(name) ⇒ Object
Instance Method Details
#expire_fragment_with_gettext(name, options = nil) ⇒ Object
466 467 468 469 470 471 472 473 |
# File 'lib/gettext/rails.rb', line 466 def expire_fragment_with_gettext(name, = nil) return unless perform_caching key = %r{#{fragment_cache_key_without_gettext(name).gsub('?', '.').gsub(/:/, ".")}} self.class.benchmark "Expired fragments matching: #{key.source}" do fragment_cache_store.delete_matched(key, ) end end |