mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 12:57:08 +00:00
Fix refresh to remove only data for current project
This commit is contained in:
@@ -881,8 +881,14 @@ export default {
|
||||
async refresh () {
|
||||
const cache = await caches.open("dougal");
|
||||
for (const key of await cache.keys()) {
|
||||
// Match only resolved requests
|
||||
if (key instanceof Request) {
|
||||
if (key.url?.match(`/project/${this.$route.params.project}`)) {
|
||||
console.log("removing", key.method, key.url);
|
||||
cache.delete(key);
|
||||
}
|
||||
}
|
||||
}
|
||||
await this.$root.sleep(300);
|
||||
this.getSequenceData();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user