Cache doesn't flush

I’m using Community version server 5.0.4 and Windows client (can’t tell what version but installed this year) on Windows 10.
Sometimes when I edit a Word file, the modified version is stored in Seafile’s cache where I can retrieve it later but it doesn’t replace the exsting version in the Seafile directory.

Why? Is there a parameter I have to change to stop it from caching which would probably be better.