CHANGE: clear replica cache when flushing or setting a file in the
workdirectory
FIX: print only once the end of processing of a transformation!
Merge pull request #1406 from phicharp/fixTransAgent-130415

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