Does PHPs fopen function implement some kind of cache?

后端 未结 5 1877
刺人心
刺人心 2020-12-11 23:16

I\'m struggling with the automated data collection of a PHP script from a webserver. The files in question contain meteo data and are updated every 10 minutes. Weirdly enoug

5条回答
  •  臣服心动
    2020-12-11 23:58

    Since you're getting the file via HTTP, I'm assuming that PHP will be honouring any cache headers the server is responding with.

    A very simple and dirty way to avoid that is to append some random get parameter to each request.

提交回复
热议问题