Browse files

Updates default cache timeouts to 60 seconds to be less hard on Dropbox.

  • Loading branch information...
1 parent 4cea6e0 commit 6f68f8d984f1f22be694dffc17de0b6ed2a5b410 @singerb committed Nov 2, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1
  2. +1 −1
@@ -273,7 +273,7 @@ def remove_user(self, uid):
class DictCache(Cache):
"""A Cache implementation that stores data in an in memory dictionary."""
- def __init__(self, folder_name, timeout=datetime.timedelta(seconds=30)):
+ def __init__(self, folder_name, timeout=datetime.timedelta(seconds=60)):
"""Construct a DictCache with a folder name.
The folder name is the path to this app's files, and could be the empty string
@@ -50,7 +50,7 @@
class SqliteCache(Cache):
"""A Cache implementation that uses the sqlite3 package and bindings."""
- def __init__(self, folder_name, timeout=datetime.timedelta(seconds=30), cache_file_name='cache.db'):
+ def __init__(self, folder_name, timeout=datetime.timedelta(seconds=60), cache_file_name='cache.db'):
"""Construct an SqliteCache.
folder_name - the Dropbox folder name this app is using; can be empty for sandbox access

0 comments on commit 6f68f8d

Please sign in to comment.