activitypub: normalize the actor to ensure we have its URI
[akkoma] / lib / pleroma / application.ex
index 89826f515fb34c6fecf0fafd9a6e25a975c4e741..e1e3bcd63fd3533961e2d4d7c7be159ddaa69047 100644 (file)
@@ -23,6 +23,18 @@ defmodule Pleroma.Application do
             limit: 2500
           ]
         ]),
+        worker(
+          Cachex,
+          [
+            :idempotency_cache,
+            [
+              default_ttl: :timer.seconds(6 * 60 * 60),
+              ttl_interval: :timer.seconds(60),
+              limit: 2500
+            ]
+          ],
+          id: :cachex_idem
+        ),
         worker(Pleroma.Web.Federator, []),
         worker(Pleroma.Gopher.Server, []),
         worker(Pleroma.Stats, [])