diff --git a/src/components/RemoteEditDrawer.tsx b/src/components/RemoteEditDrawer.tsx index 199f76f..8c15302 100644 --- a/src/components/RemoteEditDrawer.tsx +++ b/src/components/RemoteEditDrawer.tsx @@ -110,7 +110,8 @@ export default function RemoteEditDrawer({ return updatedRemoteConfig }, - onSuccess: (updatedRemoteConfig) => { + onSuccess: async (updatedRemoteConfig) => { + await rclone('/fscache/clear').catch() queryClient.setQueryData( ['remote', remoteName, 'config'], (old?: typeof remoteConfig) => ({