Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # handles cached actions and fragments with easy
- def write_fragment(key, content, options = nil)
- if options[:tag]
- tags = options[:tag].is_a?(Array) ? options[:tag] : [options[:tag]]
- tags.each do |tag|
- some_redis.sadd tag, fragment_cache_key(key)
- end
- end
- super
- end
Add Comment
Please, Sign In to add comment