diff --git a/modules/core/core.py b/modules/core/core.py index 90e2781c..1caf28a1 100644 --- a/modules/core/core.py +++ b/modules/core/core.py @@ -251,8 +251,9 @@ def get_config_parameter(self, key, default): def add_config_parameter(self, name, value, type, description, options=None): from modules.config import Config with self.app.app_context(): - Config.insert(**{"name":name, "value": value, "type": type, "description": description, "options": options}) - + c = Config.insert(**{"name":name, "value": value, "type": type, "description": description, "options": options}) + if self.cache.get("config") is not None: + self.cache.get("config")[c.name] = c def clear_cache(self, key, is_array=False): if is_array: