Reverse cache not working on start pages

Peter Booth peter_booth at me.com
Wed Oct 4 15:57:18 UTC 2017


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 <mdounin at 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


More information about the nginx mailing list