Skip to content

Commit

Permalink
Merge pull request #6 from roverdotcom/DEV-24703
Browse files Browse the repository at this point in the history
[DEV-24703] Allow cache timeout to be configurable
  • Loading branch information
imecimore authored Dec 22, 2020
2 parents 319f2cc + d248a0a commit 5ba3a0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ htmlcov
.mr.developer.cfg
.project
.pydevproject
.idea

# Complexity
output/*.html
Expand Down
2 changes: 2 additions & 0 deletions gargoyle/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5ba3a0b

Please sign in to comment.