Fix/properly reset cache and queues on server url change and backup import (#725)
* Reset cache on server url change * Reset image queue * Completely reset apollo store
This commit is contained in:
@@ -409,6 +409,12 @@ export class RequestManager {
|
||||
this.graphQLClient.updateConfig();
|
||||
}
|
||||
|
||||
public reset(): void {
|
||||
this.graphQLClient.client.resetStore();
|
||||
this.cache.clear();
|
||||
this.imageQueue.clear();
|
||||
}
|
||||
|
||||
public getBaseUrl(): string {
|
||||
return this.restClient.getBaseUrl();
|
||||
}
|
||||
@@ -2143,8 +2149,7 @@ export class RequestManager {
|
||||
);
|
||||
|
||||
result.response.then(() => {
|
||||
this.graphQLClient.client.cache.reset();
|
||||
this.cache.clear();
|
||||
this.reset();
|
||||
});
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user