class Sprockets::Cache
def peek_key(key)
Internal: Show first 100 characters of cache key for logging purposes.
def peek_key(key) if key.is_a?(String) key[0, PEEK_SIZE].inspect elsif key.is_a?(Array) str = [] key.each { |k| str << peek_key(k) } str.join(':')[0, PEEK_SIZE] else peek_key(DigestUtils.pack_urlsafe_base64digest(DigestUtils.digest(key))) end end