Search code examples
phpazurecachingwebjob

Azure app service not using new/changed files


I have an PHP app running as an azure app service.

On the app service have a webjob that runs every 15 min and puts new images in a public folder. The problem is that these new images isn't being found when i try to view them in a browser. If I restart the web app however, they pop up.

I'm also running a file-based cache. the same thing seems to apply there. changes to the cache files are not being picked up until I restart the app.

Any idea of why this is happening?


Solution

  • I would suggest you refer the below thread from SO for more details.

    How To Flush A Websites Cache?

    As @Gary pointed out, you can try to set WEBSITE_DYNAMIC_CACHE to 0, in App settings in your Azure Web Apps manage portal.