Skip to content

Commit

Permalink
add 10 sec offset to allow prices to be updated on website
Browse files Browse the repository at this point in the history
  • Loading branch information
tekina committed Sep 12, 2017
1 parent 5639350 commit 58e4c74
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/lib/common_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class << self
def cache_expiry
time = Time.zone.now.end_of_day + PRICE_REFRESH_HOUR.hours + 10.seconds
time -= 1.day if Time.zone.now.hour < PRICE_REFRESH_HOUR
byebug
return time - Time.zone.now
end

Expand Down

0 comments on commit 58e4c74

Please sign in to comment.