Updated project generate task
Fixed file cache cleanup