File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed
Shared/Volantis.App/Cache Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 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()
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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" ) {
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments