Ryan Malayter
February 24, 2010 12:14AM
On Mon, Feb 22, 2010 at 4:12 PM, budala10 <nginx-forum@nginx.us> wrote:
> What does the proxy cache?
> Cache php files with queries or only static data.
> I need a php cace does this do that?
> example php?id=2&r=tr
> the output from the php do i want to cache so the backend don't get a request before the cache is cleared.
> how, with proxy cache or proxy store ?

You want to use proxy_cache in nginx, but you should set appropriate
Cache-Control headers in your PHP scripts so that nginx will obey
them.

Typically, to cache the output of a PHP script in a proxy like nginx,
you would want something like "Cache-Control: public,max-age=3600"

Most PHP implementations set "Cache-Control: private" or
"Cache-Control: no-cache" by default for all pages, which you need to
override.

--
RPM

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

cache static content in memory

nfn May 28, 2009 02:54PM

Re: cache static content in memory

J May 28, 2009 03:37PM

Re: cache static content in memory

Cliff Wells May 28, 2009 05:26PM

Re: cache static content in memory

nfn May 29, 2009 12:47PM

Re: cache static content in memory

Igor Sysoev May 29, 2009 01:17PM

Re: cache static content in memory

nfn May 29, 2009 02:06PM

Re: cache static content in memory

Igor Sysoev May 29, 2009 02:37PM

Re: cache static content in memory

nfn May 29, 2009 04:05PM

Re: cache static content in memory

Igor Sysoev May 30, 2009 02:52AM

Re: cache static content in memory

nfn May 30, 2009 09:48AM

Re: cache static content in memory

Igor Sysoev May 30, 2009 03:20PM

Re: cache static content in memory

budala10 February 22, 2010 05:12PM

Re: cache static content in memory

Almir Karic February 22, 2010 09:42PM

Re: cache static content in memory

Ryan Malayter February 24, 2010 12:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
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