Welcome! Log In Create A New Profile

Advanced

Actions after cache miss is detected

Roger Fischer
August 10, 2018 12:08PM
Hello,

Is there a way to perform an action after a cache miss is detected but before the request is forwarded to the upstream server?

Specifically, on a cache miss I want to:
Return a response instead of forwarding the request to the upstream server.
Trigger a handler (module or script) that executes asynchronously to the request.

The latter I could do by looking at the logs. But I was wondering if there is a more elegant way.

Thanks…

Roger



_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Actions after cache miss is detected

Roger Fischer August 10, 2018 12:08PM

Re: Actions after cache miss is detected

Maxim Dounin August 12, 2018 05:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 95
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 254 on July 05, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready