Hi,
It may work in some cases but not in others - like the Azure environment. Here, the VirtualPathProvider cannot be executed so the files are not updated. In general, the files should not be updated this way - when using deployment mode, you should update the virtual files on disk, not in the DB, this is the best practice.