clear versions cache on flush storgae

This commit is contained in:
1ilit
2025-08-24 19:14:25 +04:00
parent e7f2b8fc90
commit 35941d245f
2 changed files with 2 additions and 0 deletions

View File

@@ -1417,6 +1417,7 @@ export default function ControlPanel({
message: t("are_you_sure_flush_storage"), message: t("are_you_sure_flush_storage"),
}, },
function: async () => { function: async () => {
localStorage.removeItem("versions_cache");
db.delete() db.delete()
.then(() => { .then(() => {
Toast.success(t("storage_flushed")); Toast.success(t("storage_flushed"));

View File

@@ -274,6 +274,7 @@ const en = {
load_more: "Load more", load_more: "Load more",
clear_cache: "Clear cache", clear_cache: "Clear cache",
cache_cleared: "Cache cleared", cache_cleared: "Cache cleared",
failed_to_record_version: "Failed to record version"
}, },
}; };