[redis] More connection pooling changes

This commit is contained in:
Fosco Marotto
2021-01-17 17:36:20 -05:00
parent d2d381eb90
commit 002441af1f
11 changed files with 89 additions and 49 deletions

View File

@@ -18,6 +18,8 @@ class LinkBlock < ApplicationRecord
return false if text.nil?
return false if text.length < 1
return true if text.include? '.weebly.com'
urls = text.scan(FetchLinkCardService::URL_PATTERN).map {|array|
Addressable::URI.parse(array[0]).normalize
}
@@ -30,4 +32,4 @@ class LinkBlock < ApplicationRecord
where("LOWER(link) LIKE LOWER(?)", "%#{link_for_fetch}%").exists?
end
end
end