updated cache to check if operation is successful before reloading