Created
November 23, 2016 16:32
-
-
Save emad-elsaid/ffd82be7393a223d924f5be586493ce3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def day_json | |
ids = popular_people.pluck(:id).join('.') | |
Rails.cache.fetch("pc/dj/#{ids}") do | |
render_to_string json: popular_people | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment