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
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
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 OKServer: nginx
Date: Sun, 24 Feb 2013 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: Thu, 01 Jan 1970 00:00:01 GMT
Last-Modified: Sun, 24 Feb 2013 06:43:27 GMT
Cache-Control: no-cache
X-Micro-Cache: MISS
bending technology to fit businesses.
Indeed
you can use a microcaching setting for pages with cookies. But those are session cookies. Right?
looks like session cookie
looks like session cookie
bending technology to fit businesses.
and why is it so?
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
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
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
D7branch please.Good hunting!