Skip to content

Commit

Permalink
Merge d57bf81 into ebde52d
Browse files Browse the repository at this point in the history
  • Loading branch information
littleskunk committed Sep 20, 2015
2 parents ebde52d + d57bf81 commit cf0e64a
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions dataserv/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,12 @@
level=logging.DEBUG)
TOTAL_UPDATE = 30 # minutes

DISABLE_CACHING = False
CACHING_TIME = 30 # seconds
if os.environ.get("DATASERV_CACHING_TIME"):
DISABLE_CACHING = bool(os.environ.get("DATASERV_CACHING_TIME")==0)
else:
DISABLE_CACHING = False

if os.environ.get("DATASERV_CACHING_TIME"):
CACHING_TIME = int(os.environ.get("DATASERV_CACHING_TIME"))
else:
CACHING_TIME = 30 # seconds

0 comments on commit cf0e64a

Please sign in to comment.