Update dependency "apollo-client" to v4.x

v4.1.6
This commit is contained in:
schroda
2026-03-09 22:18:08 +01:00
parent 1f323baff4
commit c6343e24a5
21 changed files with 964 additions and 1686 deletions

View File

@@ -28,7 +28,10 @@ export const ImagesSettings = () => {
const clearCache = async () => {
try {
await Promise.all([triggerClearServerCache(), ImageCache.clearAll()]);
await Promise.all([
triggerClearServerCache({ variables: { input: { cachedPages: true, cachedThumbnails: true } } }),
ImageCache.clearAll(),
]);
makeToast(t`Cleared the cache`, 'success');
} catch (e) {
makeToast(t`Could not clear the cache`, 'error', getErrorMessage(e));