CHANGE: clear replica cache when flushing or setting a file in the workdirectory

Required when moving files that are giving problems at a given site