NGINX microcaching producing high FBT times.

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by likewhoa on February 20, 2013 at 3:10am

I have a site setup were I am benchmarking boost with nginx vs nginx with microcaching and it shows that using microcaching produces a First Byte Time of around 0.984s while nginx+boost without microcaching produces 0.257s.

I know that microcaching should be producing better or similar numbers but in my case it's the appositive.

I like to get to the bottom of this odd issue.

P.S I am using perusio's d6 branch

Comments

Do you have

Posted by perusio on February 22, 2013 at 3:35pm

Boost enabled simultaneously with microcaching?

Are you sure that Nginx is caching the responses? What does a curl -I <some page> gives?

yea it's running but not

Posted by likewhoa on February 24, 2013 at 6:49am

yea it's running but not getting any HITS, I looked at the config and it seems that it won't do any caching when a cookie is set which is what is happening in this particular case.

the output from curl is:

HTTP/1.1 200 OK
Server: nginx
Date: 2013年2月24日 06:43:28 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Keep-Alive: timeout=10
Vary: Accept-Encoding
X-Powered-By: PHP/5.4.11
Set-Cookie: SESSd44c9ba5a11a2f44fd4ffd9f59=j5rsfco2l2t9v76nn5ge1; expires=Tue, 19-Mar-2013 10:16:47 GMT; path=/; domain=.foobar.com
Expires: 1970年1月01日 00:00:01 GMT
Last-Modified: 2013年2月24日 06:43:27 GMT
Cache-Control: no-cache
X-Micro-Cache: MISS

bending technology to fit businesses.

Indeed

Posted by perusio on March 1, 2013 at 12:37am

you can use a microcaching setting for pages with cookies. But those are session cookies. Right?

looks like session cookie

Posted by likewhoa on March 1, 2013 at 12:43am

looks like session cookie

bending technology to fit businesses.

and why is it so?

Posted by perusio on March 5, 2013 at 12:16am

is this a Drupal Commerce site? Where is the cookie coming from? Since you're running PHP 5.4 I assume this is a Drupal 7 site. Right?

not a commerce site, it's

Posted by likewhoa on March 7, 2013 at 12:31am

not a commerce site, it's drupal 7 and i have no idea where the cookies are coming from but i assume it's from a custom module.

bending technology to fit businesses.

You should get to the bottom of this

Posted by perusio on March 11, 2013 at 1:18pm

and find out which module is issuing the cookie. Try deactivating one by one the contrib modules and see what works.

Session handling modules are prime suspects. Also if you're on D7 use de D7 branch please.

Good hunting!

Nginx

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /