Memcache PHP Sessions Miss Rate
Posted: Wed Jun 10, 2009 8:39 am
Hi,
I have recently installed memcache to handle my PHP sessions on a fairly busy site (100k/page views/day).
When I check the stats for it, I see there is about a 30% miss rate. Now since I don't use memcache for anything else - does that mean 30% of the time the user's session is failing?
I have put some debug tests in my code it does appear that some session variables are blank that shouldn't be occasionally.. but when I try and replicate it myself, I always 100% have the session.
I do have set session.use_only_cookies = 1 for other reasons, do you think the miss rate could be from users without cookies enabled or something?
Any help please! Many thanks.
Ian
I have recently installed memcache to handle my PHP sessions on a fairly busy site (100k/page views/day).
When I check the stats for it, I see there is about a 30% miss rate. Now since I don't use memcache for anything else - does that mean 30% of the time the user's session is failing?
I have put some debug tests in my code it does appear that some session variables are blank that shouldn't be occasionally.. but when I try and replicate it myself, I always 100% have the session.
I do have set session.use_only_cookies = 1 for other reasons, do you think the miss rate could be from users without cookies enabled or something?
Any help please! Many thanks.
Ian