hide caching
This commit is contained in:
@@ -221,6 +221,3 @@ class InstallDB(lazydb.LazyDB):
|
||||
return os.path.join(ctx.config.packages_dir(), "%s-%s" % (package, self.installed_db[package]))
|
||||
|
||||
raise Exception(_('Package %s is not installed') % package)
|
||||
|
||||
def close(self):
|
||||
self.cache_save()
|
||||
|
||||
@@ -46,6 +46,9 @@ class LazyDB(Singleton):
|
||||
if os.path.exists(cache_file):
|
||||
os.unlink(cache_file)
|
||||
|
||||
def close(self):
|
||||
self.cache_save()
|
||||
|
||||
def __getattr__(self, attr):
|
||||
if not attr == "__setstate__" and not self.initialized:
|
||||
start = time.time()
|
||||
|
||||
Reference in New Issue
Block a user