1

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?

Alexander Farber
  • 18,345
  • 68
  • 208
  • 375
  • Could you share more details like the code you have written & the `web.config` file & what exactly error code you have got in the browser? – Aaron Chen Apr 13 '17 at 10:55

1 Answers1

2

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.

Community
  • 1
  • 1
Aaron Chen
  • 9,291
  • 1
  • 12
  • 24