Welcome! Log In Create A New Profile

Advanced

Caching fastcgi url

CJ Ess
June 23, 2015 04:22PM
Hello,

I am looking for advice. I am using nginx to terminate SSL and forward the
request to php via fastcgi. Of all of requests I am forwarding to fastcgi
there is one particular URL that I want to cache, hopefully bypassing
communication with the fastcgi and php processes altogether.

- Would I need to define a separate location stanza for the URL I want to
cache and duplicate all of the fastcgi configuration that is normally
required? Or is there a way to indicate that of all the fastcgi requests
only the one matching /xyz is to be cached?

- If multiple request for the same URL arrive at around the same time, and
the cache is stale, they will all wait on the one request that is
refreshing the cache, correct? So I should only see one request for the
cached location per worker per minute on the backend?

- Since my one URI is fairly small, can I indicate that no file backing is
needed?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Caching fastcgi url

CJ Ess June 23, 2015 04:22PM

Re: Caching fastcgi url

Francis Daly June 23, 2015 06:08PM

Re: Caching fastcgi url

CJ Ess June 23, 2015 06:28PM

Re: Caching fastcgi url

Francis Daly June 23, 2015 06:40PM

Re: Caching fastcgi url

ryd994 June 24, 2015 12:40PM

Re: Caching fastcgi url

CJ Ess June 24, 2015 01:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 120
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready