Re: Cannot totally switch off caching

2013-07-02 Thread Alexander Kunz
Hello, thanks for your feedback and nice to hear its solved. have a nice day. Alexander Am 03.07.2013 08:50, schrieb imanenkov: > Alexander Kunz Wrote: >> i am no drupal user/developer but if i google about drupal cache it >> sounds, there is not only one cache, and it sounds like its not onl

Re: Cannot totally switch off caching

2013-07-02 Thread imanenkov
Alexander Kunz Wrote: > i am no drupal user/developer but if i google about drupal cache it > sounds, there is not only one cache, and it sounds like its not only > one > click to disable it complete. Perhaps you can find some informations > about the cache here: > > https://drupal.org/node/797346

Re: Cannot totally switch off caching

2013-07-02 Thread Alexander Kunz
Hello, Am 02.07.2013 15:46, schrieb imanenkov: > Alexander Kunz Wrote: > --- >> >> do you use a PHP framework? Most frameworks can cache also. > Yes, site based on Drupal 7. I trying to switch off drupal cache, all the > same. i am no drupal us

Re: Cannot totally switch off caching

2013-07-02 Thread imanenkov
Alexander Kunz Wrote: --- > > do you use a PHP framework? Most frameworks can cache also. Yes, site based on Drupal 7. I trying to switch off drupal cache, all the same. > What > happens > if you request the page with a unique parameter which is

Re: Cannot totally switch off caching

2013-07-02 Thread Alexander Kunz
Hello, Am 02.07.2013 14:37, schrieb imanenkov: > Maxim Dounin Wrote: >> 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 var

Re: Cannot totally switch off caching

2013-07-02 Thread Maxim Dounin
Hello! On Tue, Jul 02, 2013 at 08:37:05AM -0400, imanenkov wrote: > Maxim Dounin Wrote: > > 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. > > > >

Re: Cannot totally switch off caching

2013-07-02 Thread imanenkov
Maxim Dounin Wrote: > 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 $upstre

Re: Cannot totally switch off caching

2013-07-02 Thread Maxim Dounin
Hello! On Tue, Jul 02, 2013 at 07:49:56AM -0400, imanenkov wrote: > Maxim Dounin Wrote: > --- > > Unfortunately, all the tests you did actually prove nothing. > > You've been told to switch off php-fpm, not to change nginx > > configuration.

Re: Cannot totally switch off caching

2013-07-02 Thread imanenkov
Maxim Dounin Wrote: --- > Unfortunately, all the tests you did actually prove nothing. > You've been told to switch off php-fpm, not to change nginx > configuration. Do you mean stopping php-fpm with "/etc/init.d/php5-fpm stop" command? In this

Re: Cannot totally switch off caching

2013-07-02 Thread Maxim Dounin
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

Re: Cannot totally switch off caching

2013-07-01 Thread imanenkov
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

Re: Cannot totally switch off caching

2013-07-01 Thread imanenkov
Ben Johnson Wrote: > Are you using some type of opcode-caching software, e.g. APC, > memcached, > etc.? If you're convinced that PHP is doing the caching, I would > disable > any opcode-caching software first. > > -Ben Yes, initially I use APC, but I switch it off, and problem still exist. Posted

Re: Cannot totally switch off caching

2013-07-01 Thread Maxim Dounin
Hello! On Mon, Jul 01, 2013 at 08:32:32AM -0400, imanenkov wrote: > Maxim Dounin Wrote: > --- > > > > By default nginx doesn't cache anything. You may want to look > > into your php code to find out what is cached / causes reduced > > respon

Re: Cannot totally switch off caching

2013-07-01 Thread Ben Johnson
On 7/1/2013 4:33 AM, imanenkov wrote: > For some testing I need to switch off a nginx caching (nginx + php-fpm). Now > I have a trouble - when I request a server (PHP app) first time, response > generated about 10 sec (its ok), but when a request a server another time > (during approx 1-2 mins fr

Re: Cannot totally switch off caching

2013-07-01 Thread Alexander Kunz
Hi, and don't forget database's cache. You write about PHP, often there is mysql also involved, which have the ability to cache. Regards Alexander Am 01.07.2013 10:33, schrieb imanenkov: Greeting! For some testing I need to switch off a nginx caching (nginx + php-fpm). Now I have a troubl

Re: Cannot totally switch off caching

2013-07-01 Thread imanenkov
Maxim Dounin Wrote: --- > > By default nginx doesn't cache anything. You may want to look > into your php code to find out what is cached / causes reduced > response time in subsequent requests. > I think about it, but this is heavy app, and

Re: Cannot totally switch off caching

2013-07-01 Thread Igor Sverkos
Hi, and don't forget system's page cache. From my experience: The files needed to process the first request aren't yet read, so Linux has to read them from disk (slow). Then, for the second and further requests, the files are in the page cache (aka system buffer), so that Linux don't have to rea

Re: Cannot totally switch off caching

2013-07-01 Thread Maxim Dounin
Hello! On Mon, Jul 01, 2013 at 04:33:55AM -0400, imanenkov wrote: > Greeting! > > For some testing I need to switch off a nginx caching (nginx + php-fpm). Now > I have a trouble - when I request a server (PHP app) first time, response > generated about 10 sec (its ok), but when a request a serve

Cannot totally switch off caching

2013-07-01 Thread imanenkov
Greeting! For some testing I need to switch off a nginx caching (nginx + php-fpm). Now I have a trouble - when I request a server (PHP app) first time, response generated about 10 sec (its ok), but when a request a server another time (during approx 1-2 mins from first request) response is returne