module Sprockets::Caching
def cache_hash(key, version)
def cache_hash(key, version) if cache.nil? yield elsif hash = cache_get_hash(key, version) hash elsif hash = yield cache_set_hash(key, version, hash) hash end end
def cache_hash(key, version) if cache.nil? yield elsif hash = cache_get_hash(key, version) hash elsif hash = yield cache_set_hash(key, version, hash) hash end end