Excuse me for posting this, not so much a question as a word of
warning not to be as stupid as me.
I had installed memcached on windows server 2003, on the box with my
test web server on it (php as an apache module), and during testing,
adjust the registry settings for the service to bind only to
127.0.0.1, (add switch -l 127.0.0.1) whereas my server has a private
IP of 10.12.1.16 my code used
$bConnect = @$memcache->connect('127.0.0.1', 11211);
and all was well, later, well after I had abstracted all the data
source code, I started to test the live site, knowing that I shouldn't
use 127.0.0.1 in production as I want to have loosely coupled logic
and want to add more memcached servers later, and found that using
$bConnect = @$memcache->connect('10.12.1.16', 11211);
made the TTFB much more, by 500ms or so.
Of course, it was because there was no caching going on, each query
was going to the db, I racked my brains and searched this group before
figuring it out.
Don't be as silly as me. Have some logging to php_error.log to show
cache misses at least.
Have a nice day :)