summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Felder <feld@feld.me>2024-07-24 15:45:35 -0400
committerMark Felder <feld@feld.me>2024-07-24 15:45:39 -0400
commit97d488aea3ce75e52d4e6ba9a3b5e4447b535879 (patch)
treecff1582ea98acb29899ce7d8d942c18befe3b62a /lib
parent5a62868106465bd30be11922b4ff3b11b3c174aa (diff)
downloadpleroma-97d488aea3ce75e52d4e6ba9a3b5e4447b535879.tar.gz
pleroma-97d488aea3ce75e52d4e6ba9a3b5e4447b535879.zip
Fix RichMedia negative cache entries
The negative cache entry was a nil value, but that is an expected response when the cache is missing an entry so it didn't work as intended.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/rich_media/backfill.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/rich_media/backfill.ex b/lib/pleroma/web/rich_media/backfill.ex
index cf638fa29..1cd90629f 100644
--- a/lib/pleroma/web/rich_media/backfill.ex
+++ b/lib/pleroma/web/rich_media/backfill.ex
@@ -64,5 +64,5 @@ defmodule Pleroma.Web.RichMedia.Backfill do
defp warm_cache(key, val), do: @cachex.put(:rich_media_cache, key, val)
defp negative_cache(key, ttl \\ :timer.minutes(15)),
- do: @cachex.put(:rich_media_cache, key, nil, ttl: ttl)
+ do: @cachex.put(:rich_media_cache, key, :error, ttl: ttl)
end