Kentico not update vitual files

GTEK IT DEV Team asked on August 16, 2018 06:22

I have a problem, that when i changed the content in Transformations or Page templage layout. The vitual file of that templates it's not update. Even when i set account for app pool is admin account. How can i resolve this problem?

Thanks

Correct Answer

Juraj Ondrus answered on August 17, 2018 06:45

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.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Arun Kumar answered on August 16, 2018 06:56

Hi,

Have you tried to clear cache for page or current site you are using? To clear cache for page go to Page -> General Tab -> Clear Output Cache. To clear system cache go to System -> General -> Clear Cache.

0 votesVote for this answer Mark as a Correct answer

GTEK IT DEV Team answered on August 16, 2018 07:27

Yes, i tried to clear the cache. I even check in the VitualFiles folder in Kentico CMS. Nothing changed !

0 votesVote for this answer Mark as a Correct answer

GTEK IT DEV Team answered on August 16, 2018 12:25

And one more information, that i host my website on azure server.

0 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on August 16, 2018 13:12

If the deployment mode is turned on and virtual files are saved to disk, you need to do the changes to the files on disk. The changes made to the virtual file in DB are not automatically reflected to the files on disk.

2 votesVote for this answer Mark as a Correct answer

GTEK IT DEV Team answered on August 17, 2018 04:36

The strange thing is, when i deploy the application on my machine or our own server. Every thing works find. When i change the template, the vitual files updated too. This problem just occur when we deploy the website on azure server (Live server). I don't know why.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.