Skip to content

Commit

Permalink
Updates default cache timeouts to 60 seconds to be less hard on Dropbox.
Browse files Browse the repository at this point in the history
  • Loading branch information
singerb committed Nov 2, 2012
1 parent 4cea6e0 commit 6f68f8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sqlite_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6f68f8d

Please sign in to comment.