Home > Backend Development > PHP Tutorial > memcached - 使用memcache做为php的session命中率如此的低...

memcached - 使用memcache做为php的session命中率如此的低...

WBOY
Release: 2016-06-06 20:49:50
Original
1285 people have browsed it

使用memcache替换了php默认的session,在php.ini级别修改的,但是命中率特别的低。求解。

Hits: 764836 (41.3%)
Misses: 1085434 (58.7%)

回复内容:

使用memcache替换了php默认的session,在php.ini级别修改的,但是命中率特别的低。求解。

Hits: 764836 (41.3%)
Misses: 1085434 (58.7%)

因为你网站都是新访客,每次来一个新访问会生成一个新的sessionid,也就是一个新的KEY,每一个会话访问几个页面就走了(GET)。大量的访问都是新访客(SET),自然命中率不高。这样解释如何?

  1. 你的网站访问量太小。新/老访客的比例太高。

  2. 同一个访客访问的页面太少。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template