This commit is contained in:
Maksim Pechnikov 2020-06-18 05:02:33 +03:00
parent 2731ea1334
commit 4044f24e2e
3 changed files with 4 additions and 3 deletions

View file

@ -26,7 +26,8 @@ def purge(urls) do
defp do_purge(urls) do
provider = Config.get([:media_proxy, :invalidation, :provider])
provider.purge(urls, Config.get(provider))
options = Config.get(provider)
provider.purge(urls, options)
end
def prepare_urls(urls) do

View file

@ -6,7 +6,7 @@ defmodule Pleroma.Web.MediaProxy.Invalidation.HttpTest do
import Tesla.Mock
setup do
on_exit(fn -> Cachex.clear(:deleted_urls_cache) end)
on_exit(fn -> Cachex.clear(:banned_urls_cache) end)
end
test "logs hasn't error message when request is valid" do

View file

@ -5,7 +5,7 @@ defmodule Pleroma.Web.MediaProxy.Invalidation.ScriptTest do
import ExUnit.CaptureLog
setup do
on_exit(fn -> Cachex.clear(:deleted_urls_cache) end)
on_exit(fn -> Cachex.clear(:banned_urls_cache) end)
end
test "it logger error when script not found" do