Put deprecation warnings undre Pleroma.Config.
[akkoma] / lib / pleroma / application.ex
index cb3e6b69b0c43f3e16ce5bf8ae60635cca21740a..31f2605b8825f97c33276f55f95ba554aae0385a 100644 (file)
@@ -22,6 +22,8 @@ defmodule Pleroma.Application do
   def start(_type, _args) do
     import Cachex.Spec
 
+    Pleroma.Config.DeprecationWarnings.warn()
+
     # Define workers and child supervisors to be supervised
     children =
       [
@@ -63,6 +65,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,
           [