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,7 +881,13 @@ export default {
|
|||||||
async refresh () {
|
async refresh () {
|
||||||
const cache = await caches.open("dougal");
|
const cache = await caches.open("dougal");
|
||||||
for (const key of await cache.keys()) {
|
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);
|
await this.$root.sleep(300);
|
||||||
this.getSequenceData();
|
this.getSequenceData();
|
||||||
|
|||||||
Reference in New Issue
Block a user