Created
January 16, 2012 20:50
-
-
Save mdeiters/1622977 to your computer and use it in GitHub Desktop.
poor man caching
This file contains 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
expires_in 1.minute, :public => true if Rails.env.production? | |
if stale?(:etag => @user.endorsements.size, :last_modified => @user.updated_at.utc) | |
#...image generation | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment