diff options
| -rw-r--r-- | server/src/leap/soledad/server/sync.py | 5 | 
1 files changed, 1 insertions, 4 deletions
| diff --git a/server/src/leap/soledad/server/sync.py b/server/src/leap/soledad/server/sync.py index 619be565..92b29102 100644 --- a/server/src/leap/soledad/server/sync.py +++ b/server/src/leap/soledad/server/sync.py @@ -185,15 +185,12 @@ class SyncResource(http_app.SyncResource):          :type ensure: bool          """          # create or open the database -        cache = get_cache_for('db-' + sync_id + self.dbname) +        cache = get_cache_for('db-' + sync_id + self.dbname, expire=120)          if ensure:              db, self.replica_uid = self.state.ensure_database(self.dbname) -        elif cache and 'instance' in cache: -            db = cache['instance']          else:              db = self.state.open_database(self.dbname)          db.init_caching(cache) -        cache['instance'] = db          # validate the information the client has about server replica          db.validate_gen_and_trans_id(              last_known_generation, last_known_trans_id) | 
