Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Actions after cache miss is detected (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>