Adding cache clearing and folder ownership to dsn process.