mirror of
https://github.com/neocities/neocities.git
synced 2025-07-21 18:16:07 +02:00
proxy ips to match tests, prevent fail for no proxies
This commit is contained in:
parent
776bbeaa2c
commit
1ac30ea529
3 changed files with 6 additions and 2 deletions
|
@ -11,6 +11,8 @@ class DeleteCacheOrderWorker
|
|||
#proxy_ips = Resolv.getaddresses($config['cache_purge_ips_uri']).keep_if {|r| !r.match(/:/)}
|
||||
proxy_ips = $config['proxy_ips']
|
||||
|
||||
return if proxy_ips.nil? || proxy_ips.empty?
|
||||
|
||||
proxy_ips.each do |proxy_ip|
|
||||
DeleteCacheWorker.perform_async proxy_ip, username, path
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue