support clearing application code cache
This commit is contained in:
@@ -72,6 +72,10 @@
|
||||
:disabled="loading || !isSupportedFileCache || !fileCacheStatistics" @click="clearMapCache()">
|
||||
{{ tt('Clear Map Data Cache') }}
|
||||
</v-btn>
|
||||
<v-btn color="secondary" variant="tonal"
|
||||
:disabled="loading || !isSupportedFileCache || !fileCacheStatistics" @click="clearApplicationCodeFileCache()">
|
||||
{{ tt('Clear Application Code Cache') }}
|
||||
</v-btn>
|
||||
<v-btn class="ms-2" color="secondary" variant="tonal"
|
||||
:disabled="loading || !isSupportedFileCache || !fileCacheStatistics" @click="clearAllFileCache()">
|
||||
{{ tt('Clear All File Cache') }}
|
||||
@@ -180,6 +184,7 @@ const {
|
||||
exchangeRatesDataCacheExpiration,
|
||||
loadCacheStatistics,
|
||||
clearMapDataCache,
|
||||
clearApplicationCodeCache,
|
||||
clearAllBrowserCaches,
|
||||
clearExchangeRatesDataCache
|
||||
} = useAppBrowserCacheSettingPageBase();
|
||||
@@ -194,6 +199,14 @@ function clearMapCache(): void {
|
||||
});
|
||||
}
|
||||
|
||||
function clearApplicationCodeFileCache(): void {
|
||||
confirmDialog.value?.open('Are you sure you want to clear application code cache?').then(() => {
|
||||
clearApplicationCodeCache().then(() => {
|
||||
loadCacheStatistics(true);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function clearAllFileCache(): void {
|
||||
confirmDialog.value?.open('Are you sure you want to clear all file cache?').then(() => {
|
||||
clearAllBrowserCaches().then(() => {
|
||||
|
||||
Reference in New Issue
Block a user