try to fetch story cache twice if it fails the first time
This commit is contained in:
parent
c8d9c66061
commit
ca62e5b43f
|
@ -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|
|
Story.where("id > ?", last_story_id).order(:id).each do |s|
|
||||||
s.fetch_story_cache!
|
s.fetch_story_cache!
|
||||||
|
|
||||||
|
if s.story_cache.blank?
|
||||||
|
s.fetch_story_cache!
|
||||||
|
end
|
||||||
|
|
||||||
s.save
|
s.save
|
||||||
|
|
||||||
mailing_list_users.each do |u|
|
mailing_list_users.each do |u|
|
||||||
|
|
Loading…
Reference in a new issue