Remove caching because it does not affect performance and may be even worse in some...
[akkoma] / lib / pleroma / application.ex
index cb3e6b69b0c43f3e16ce5bf8ae60635cca21740a..5f9518914d20bfbf06b4fff63a1efbda8d13e31a 100644 (file)
@@ -63,6 +63,17 @@ defmodule Pleroma.Application do
           ],
           id: :cachex_object
         ),
+        worker(
+          Cachex,
+          [
+            :rich_media_cache,
+            [
+              default_ttl: :timer.minutes(120),
+              limit: 5000
+            ]
+          ],
+          id: :cachex_rich_media
+        ),
         worker(
           Cachex,
           [
@@ -73,6 +84,17 @@ defmodule Pleroma.Application do
           ],
           id: :cachex_scrubber
         ),
+        worker(
+          Cachex,
+          [
+            :metadata_cache,
+            [
+              limit: 2500,
+              default_ttl: :timer.minutes(15)
+            ]
+          ],
+          id: :cachex_metadata
+        ),
         worker(
           Cachex,
           [