method

cache_fragment_name

Importance_1
cache_fragment_name(name = {}, skip_digest: nil, virtual_path: nil) public

This helper returns the name of a cache key for a given fragment cache call. By supplying skip_digest: true to cache, the digestion of cache fragments can be manually bypassed. This is useful when cache fragments cannot be manually expired unless you know the exact key which is the case when using memcached.

The digest will be generated using virtual_path: if it is provided.

Show source
Register or log in to add new notes.