commit eca0be6: [Minor] Mime_types: Use cached settings

Vsevolod Stakhov vsevolod at highsecure.ru
Wed Sep 9 13:35:06 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-09-09 12:07:40 +0100
URL: https://github.com/rspamd/rspamd/commit/eca0be6ce498329b71716e34391db93db8c46f37

[Minor] Mime_types: Use cached settings

---
 src/plugins/lua/mime_types.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/mime_types.lua b/src/plugins/lua/mime_types.lua
index 981512a33..a4c664e3f 100644
--- a/src/plugins/lua/mime_types.lua
+++ b/src/plugins/lua/mime_types.lua
@@ -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


More information about the Commits mailing list