use new discard() method of EntropyCacher
This commit is contained in:
@@ -124,7 +124,7 @@ class CacheMixin:
|
||||
)
|
||||
|
||||
def clear_dump_cache(self, dump_name, skip = []):
|
||||
self.Cacher.sync(wait = True)
|
||||
self.Cacher.discard()
|
||||
self.SystemSettings._clear_dump_cache(dump_name, skip = skip)
|
||||
|
||||
def update_ugc_cache(self, repository):
|
||||
|
||||
@@ -1160,7 +1160,7 @@ class MiscMixin:
|
||||
@type branch basestring
|
||||
@return None
|
||||
"""
|
||||
self.Cacher.sync(wait = True)
|
||||
self.Cacher.discard()
|
||||
self.Cacher.stop()
|
||||
self.purge_cache(showProgress = False)
|
||||
self.close_all_repositories()
|
||||
@@ -1522,7 +1522,7 @@ class MatchMixin:
|
||||
if not callable(f):
|
||||
raise IncorrectParameter('IncorrectParameter: %s: %s' % (_("not a valid method"),method,) )
|
||||
|
||||
self.Cacher.sync(wait = True)
|
||||
self.Cacher.discard()
|
||||
done = f(match, dry_run)
|
||||
if done and not dry_run:
|
||||
self.SystemSettings.clear()
|
||||
|
||||
@@ -1262,7 +1262,7 @@ class SystemSettings(Singleton):
|
||||
"""
|
||||
Internal method, go away!
|
||||
"""
|
||||
self.__cacher.sync(wait = True)
|
||||
self.__cacher.discard()
|
||||
self._clear_dump_cache(etpCache['world_available'])
|
||||
self._clear_dump_cache(etpCache['world_update'])
|
||||
self._clear_dump_cache(etpCache['check_package_update'])
|
||||
|
||||
Reference in New Issue
Block a user