popcon: use own .info file to bust launcher cache
parent
09c3445ac3
commit
eb0af982c5
|
|
@ -22,11 +22,11 @@ const ensureCache = (): NonNull<typeof cache> => {
|
||||||
|
|
||||||
const saveCache = (orderChanged: boolean) => {
|
const saveCache = (orderChanged: boolean) => {
|
||||||
require("Storage").writeJSON("popcon.cache.json", cache);
|
require("Storage").writeJSON("popcon.cache.json", cache);
|
||||||
if(orderchanged){
|
if(orderChanged){
|
||||||
// wipe launcher cache
|
// ensure launchers reload their caches:
|
||||||
require("Storage")
|
const info: AppInfo & { cacheBuster?: boolean } = oldRead("popcon.info", true);
|
||||||
.list(/launch.*cache/)
|
info.cacheBuster = !info.cacheBuster;
|
||||||
.forEach(f => require("Storage").erase(f))
|
require("Storage").writeJSON("popcon.info", info);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue