Welcome! Log In Create A New Profile

Advanced

Re: testing nginx caching

J
August 30, 2009 06:37PM
Try to fetch a page which is changing at each request (random number
in PHP, apache status, ...)

If the page is catched, it won't change when you request it to nginx.
It will changes after it expires. You can add the
$upstream_cache_status variable, it should log information about cache
status (MISS = the page is not in cache and it's been requested to
backend / HIT = the page has been served from cache / EXPIRED = the
page has expired and it's been requested to backend)

++ Jerome

2009/8/31 fredericsidler <nginx-forum@nginx.us>:
> I'm trying to use nginx with caching capabilities. And I don't know how to test if nginx is really caching files and using them. I can see the files that nginx is caching, but I don't know if it uses them when I request the same URL again.
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,5363,5363#msg-5363
>
>
>
Subject Author Posted

testing nginx caching

fredericsidler August 30, 2009 06:22PM

Re: testing nginx caching

J August 30, 2009 06:37PM

Re: testing nginx caching

fredericsidler August 31, 2009 03:17AM

Re: testing nginx caching

fredericsidler August 31, 2009 04:59AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 120
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready