mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 08:47:07 +00:00
Fix refresh to remove only data for current project
This commit is contained in:
@@ -881,7 +881,13 @@ export default {
|
||||
async refresh () {
|
||||
const cache = await caches.open("dougal");
|
||||
for (const key of await cache.keys()) {
|
||||
cache.delete(key);
|
||||
// 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