move cahche clearing into watchFileAndAct