I found it useful to define a dropCache location that will delete the cache on request. I did this with a shell script that I invoked with lua (via openresty) but I imagine there are multiple ways to do this.
Sent from my iPhone > On Oct 4, 2017, at 11:39 AM, Maxim Dounin <mdou...@mdounin.ru> wrote: > > Hello! > >> On Wed, Oct 04, 2017 at 06:01:35AM -0400, Dingo wrote: >> >> Another update: >> >> I finally deleted /data/nginx/cache/*, and now everything seems to be >> working. It looks like Nginx don't bother about what cache timeout I use. If >> it is 1 day, as in the example from nginx.org, everything that was cached at >> that time will be remembered for 1 day. I have no clue why my startpages was >> not working, but they are now that I deleted the cache. > > Cache validity time is determened when loading a response from the > backend based on the response headers and the configuration active > at that time. Any futher changes to the configuration have no > effect. > > So what you did is basically correct: if you are making major > changes to your caching configuration, you may need to clear the > cache manually. > > -- > Maxim Dounin > http://nginx.org/ > _______________________________________________ > nginx mailing list > nginx@nginx.org > http://mailman.nginx.org/mailman/listinfo/nginx _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx