Updated FetchLinkCardService to update card in shorter period
• Updated: - FetchLinkCardService to update card in shorter period from 1week to 12hr
This commit is contained in:
parent
3ac94fe610
commit
8a1f2f2c47
@ -30,7 +30,7 @@ class FetchLinkCardService < BaseService
|
||||
RedisLock.acquire(lock_options) do |lock|
|
||||
if lock.acquired?
|
||||
@card = PreviewCard.find_by(url: @url)
|
||||
process_url if @card.nil? || @card.updated_at <= 1.weeks.ago || @card.missing_image?
|
||||
process_url if @card.nil? || @card.updated_at <= 12.hours.ago || @card.missing_image?
|
||||
else
|
||||
raise GabSocial::RaceConditionError
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user