04 2012 档案

摘要:increment($key, 1);if( $count === false ){ $memcache->add($key, 1); exit();}if($count==1000){ $memcache->set($key,0,false,0); /*write db*/}?> 阅读全文
posted @ 2012-04-01 00:51 rorshach 阅读(183) 评论(0) 推荐(0) 编辑
摘要:Varnish反向代理缓存1.用Nginx作为前端代理,用Apache作为后端服务修改nginx的配置文件,使其监听8002端口,并作为apache的反向代理,将所有的php文件转发到后端location ~ \.*${proxy_pass localhost:80;}2.修改varnish的配置... 阅读全文
posted @ 2012-04-01 00:43 rorshach 阅读(176) 评论(0) 推荐(0) 编辑