Method: ActionController::Caching::Fragments#fragment_exist?
- Defined in:
- actionpack/lib/action_controller/caching/fragments.rb
#fragment_exist?(key, options = nil) ⇒ Boolean
Check if a cached fragment from the location signified by key
exists (see expire_fragment
for acceptable formats).
52 53 54 55 56 57 58 59 |
# File 'actionpack/lib/action_controller/caching/fragments.rb', line 52 def fragment_exist?(key, = nil) return unless cache_configured? key = fragment_cache_key(key) instrument_fragment_cache :exist_fragment?, key do cache_store.exist?(key, ) end end |