Clear path cache when the file is closed with lazy-upload