]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Mime_types: Use cached settings
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 9 Sep 2020 11:07:40 +0000 (12:07 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 9 Sep 2020 11:07:40 +0000 (12:07 +0100)
src/plugins/lua/mime_types.lua

index 981512a339a37dd9c1ee6df6703acf817fc4fab7..a4c664e3f490eefb6a5481298779a03ab56c91a6 100644 (file)
@@ -285,7 +285,7 @@ local function check_mime_type(task)
     -- Process settings
     local extra_table = {}
     local extra_archive_table = {}
-    local user_settings = task:get_settings()
+    local user_settings = task:cache_get('settings')
     if user_settings and user_settings.plugins then
       user_settings = user_settings.plugins.mime_types
     end