# HG changeset patch # User edogawaconan # Date 1411000147 -32400 # Node ID 205c0b5d9f44a9b4632828882ec47e240d25ce0e # Parent cf5c379d133f542d29340ea405218cb08e71442e Whoops, expires_in accidentally as key name. diff -r cf5c379d133f -r 205c0b5d9f44 app/models/tweet.rb --- a/app/models/tweet.rb Mon Sep 15 17:03:36 2014 +0900 +++ b/app/models/tweet.rb Thu Sep 18 09:29:07 2014 +0900 @@ -8,7 +8,7 @@ def timeline @timeline ||= - Rails.cache.fetch :timeline => @twitter_id, :expires_in => 5.minutes do + Rails.cache.fetch({ :timeline => @twitter_id }, :expires_in => 5.minutes) do @client.user_timeline(@twitter_id) end end