Welcome! Log In Create A New Profile

Advanced

Re: Cannot totally switch off caching

Maxim Dounin
July 02, 2013 06:50AM
Hello!

On Tue, Jul 02, 2013 at 02:08:52AM -0400, imanenkov wrote:

> Maxim Dounin Wrote:
> > On the other hand, 100-200 msec is way too long for nginx to
> > return a cached response.
> >
> > If you assume the response is cached by nginx somehow, simpliest
> > test is to switch off php-fpm and check if you are still able to
> > request a resource.
> Thanks for idea! I change a location path in template named "php" from
> "location ~ \.php$" to "location ~ \.pZp$" (just for excluding *.php
> processing), restart nginx, and server returned a just content (source) of
> my index.php file. Then I revert location changes back to \.php, restart
> nginx, make request, and server return fast response of correct page again
> (0.01 sec with wget, and 60 msec with httperf).

Unfortunately, all the tests you did actually prove nothing.
You've been told to switch off php-fpm, not to change nginx
configuration.

If you want to change nginx configuration - just add
$upstream_cache_status variable to a log, it will show if a
response was from nginx cache (HIT) or was requested from a
backend.

Other upstream-related variables may be interesting too, in
particular $upstream_response_time. See here for more:

http://nginx.org/en/docs/http/ngx_http_upstream_module.html#variables

--
Maxim Dounin
http://nginx.org/en/donation.html

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

Cannot totally switch off caching

imanenkov July 01, 2013 04:33AM

Re: Cannot totally switch off caching

Maxim Dounin July 01, 2013 08:00AM

Re: Cannot totally switch off caching

Igor Sverkos July 01, 2013 08:30AM

Re: Cannot totally switch off caching

imanenkov July 01, 2013 08:32AM

Re: Cannot totally switch off caching

Maxim Dounin July 01, 2013 12:38PM

Re: Cannot totally switch off caching

imanenkov July 02, 2013 02:08AM

Re: Cannot totally switch off caching

Maxim Dounin July 02, 2013 06:50AM

Re: Cannot totally switch off caching

imanenkov July 02, 2013 07:49AM

Re: Cannot totally switch off caching

Maxim Dounin July 02, 2013 08:28AM

Re: Cannot totally switch off caching

imanenkov July 02, 2013 08:37AM

Re: Cannot totally switch off caching

Maxim Dounin July 02, 2013 08:58AM

Re: Cannot totally switch off caching

Alexander Kunz July 02, 2013 09:08AM

Re: Cannot totally switch off caching

imanenkov July 02, 2013 09:46AM

Re: Cannot totally switch off caching

Alexander Kunz July 02, 2013 11:06AM

Re: Cannot totally switch off caching

imanenkov July 03, 2013 02:50AM

Re: Cannot totally switch off caching

Alexander Kunz July 03, 2013 02:54AM

Re: Cannot totally switch off caching

Alexander Kunz July 01, 2013 08:48AM

Re: Cannot totally switch off caching

Ben Johnson July 01, 2013 09:06AM

Re: Cannot totally switch off caching

imanenkov July 02, 2013 01:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 315
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready