AbstractController::Caching::Fragments::ClassMethods
module AbstractController::Caching::Fragments::ClassMethods
Public Instance Methods
Allows you to specify controller-wide key prefixes for cache fragments. Pass either a constant value
, or a block which computes a value each time a cache key is generated.
For example, you may want to prefix all fragment cache keys with a global version identifier, so you can easily invalidate all caches.
登录查看完整内容