From 1cd085fa9714056146e913e807a3be387faf0a13 Mon Sep 17 00:00:00 2001 From: Ivan Mecimore Date: Tue, 22 Dec 2020 14:38:20 -0800 Subject: [PATCH 1/2] [DEV-24703] Allow cache timeout to be configurable --- gargoyle/manager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gargoyle/manager.py b/gargoyle/manager.py index 96641c62..079b5e9a 100644 --- a/gargoyle/manager.py +++ b/gargoyle/manager.py @@ -170,6 +170,8 @@ def make_gargoyle(): kwargs['remote_timeout'] = settings.GARGOYLE_REMOTE_CACHE_TIMEOUT if hasattr(settings, 'GARGOYLE_MAX_LOCAL_TIMEOUT_JITTER'): kwargs['max_local_timeout_jitter'] = settings.GARGOYLE_MAX_LOCAL_TIMEOUT_JITTER + if hasattr(settings, 'GARGOYLE_LOCAL_CACHE_TIMEOUT'): + kwargs['timeout'] = settings.GARGOYLE_LOCAL_CACHE_TIMEOUT return SwitchManager(Switch, **kwargs) From d248a0a46bf9188dbe29c97e7529289cff01f73c Mon Sep 17 00:00:00 2001 From: Ivan Mecimore Date: Tue, 22 Dec 2020 14:39:22 -0800 Subject: [PATCH 2/2] Ignore pycharm directories --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2b480fce..e8a7acaf 100644 --- a/.gitignore +++ b/.gitignore @@ -37,6 +37,7 @@ htmlcov .mr.developer.cfg .project .pydevproject +.idea # Complexity output/*.html