try to fetch story cache twice if it fails the first time

This commit is contained in:
joshua stein 2013-07-03 22:11:12 -05:00
parent c8d9c66061
commit ca62e5b43f

View file

@ -50,6 +50,11 @@ last_story_id = (Keystore.value_for(LAST_STORY_KEY) || Story.last.id).to_i
Story.where("id > ?", last_story_id).order(:id).each do |s|
s.fetch_story_cache!
if s.story_cache.blank?
s.fetch_story_cache!
end
s.save
mailing_list_users.each do |u|