invalidate historydb after every api operation
This commit is contained in:
+2
-1
@@ -12,7 +12,8 @@
|
|||||||
|
|
||||||
def invalidate_caches():
|
def invalidate_caches():
|
||||||
# Invalidates pisi caches in use and forces to re-fill caches from disk when needed
|
# Invalidates pisi caches in use and forces to re-fill caches from disk when needed
|
||||||
for db in [packagedb.PackageDB(), sourcedb.SourceDB(), componentdb.ComponentDB(), installdb.InstallDB()]:
|
for db in [packagedb.PackageDB(), sourcedb.SourceDB(), componentdb.ComponentDB(),
|
||||||
|
installdb.InstallDB(), historydb.HistoryDB()]:
|
||||||
db.invalidate()
|
db.invalidate()
|
||||||
|
|
||||||
def flush_caches():
|
def flush_caches():
|
||||||
|
|||||||
Reference in New Issue
Block a user