Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v4.2.9) is shown here.
fragment_exist?(key, options = nil)
public
Check if a cached fragment from the location signified by key
exists (see expire_fragment
for acceptable formats).
# File actionpack/lib/action_controller/caching/fragments.rb, line 52
def fragment_exist?(key, options = nil)
return unless cache_configured?
key = fragment_cache_key(key)
instrument_fragment_cache :exist_fragment?, key do
cache_store.exist?(key, options)
end
end