Skip to content

Commit 16b87d1

Browse files
committed
Fix issues with cache flushing
1 parent 0e86b34 commit 16b87d1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Lib/Launchpad/App/Launchpad.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@
337337
}
338338

339339
if (this.isSetup && this.Config["flush_cache_on_exit"]) {
340-
this.Service("CacheManager").FlushCaches(false)
340+
this.Service("CacheManager").FlushCaches(false, false)
341341
}
342342

343343
super.ExitApp()

Lib/Launchpad/Gui/Form/SettingsWindow.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@
254254
} else if (btn == "OpenCacheDir") {
255255
this.app.Service("CacheManager").OpenCacheDir()
256256
} else if (btn == "FlushCacheDir") {
257-
this.app.Service("CacheManager").FlushCaches()
257+
this.app.Service("CacheManager").FlushCaches(true, true)
258258
}
259259
}
260260

Lib/Launchpad/Gui/ManageWindow/MainWindow.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
} else if (result == "ManageBackups") {
129129
this.app.Service("GuiManager").OpenWindow("ManageBackupsWindow")
130130
} else if (result == "FlushCache") {
131-
this.app.Service("CacheManager").FlushCaches()
131+
this.app.Service("CacheManager").FlushCaches(true, true)
132132
} else if (result == "CleanLaunchers") {
133133
this.app.Service("BuilderManager").CleanLaunchers()
134134
} else if (result == "ReloadLaunchers") {

Lib/Shared/Volantis.App/Cache/FileCache.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class FileCache extends CacheBase {
4040
}
4141
}
4242

43-
FlushCacheAction() {
43+
FlushCacheAction(force := false) {
4444
if (DirExist(this.cachePath)) {
4545
DirDelete(this.cachePath, true)
4646
}

Lib/Shared/Volantis.App/Cache/ObjectCache.ahk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ObjectCache extends CacheBase {
2323
this.cacheObj.Delete(key)
2424
}
2525

26-
FlushCacheAction() {
26+
FlushCacheAction(force := false) {
2727
this.cacheObj := Map()
2828
return true
2929
}

0 commit comments

Comments
 (0)