Ticket #28 (closed 优化: 已处理)
缓存型接口向外移到nginx层,减少resin端压力
| Reported by: | qinhongyuan | Owned by: | qinhongyuan |
|---|---|---|---|
| Priority: | 重要的(3) | Milestone: | |
| Component: | 核心模块 | Version: | 电脑网产品论坛6.4 |
| Keywords: | 接口缓存 nginx memcached | Cc: | qinhongyuan |
| Due Date: | 01/01/2013 |
Description
现在论坛的接口所有都是压到应用这边的服务器上来,消耗资源巨大,现参考评论的做法,把接口提到服务器上来~
Change History
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](http://www1.pconline.com.cn/hr/2009/global/images/logo.gif)
nginx自带memcached模块尝试
server { listen 88; access_log logs/host.access.log main; default_type text/html; location ~ ^/hello/(.*)$ { set $memcached_key $1; memcached_pass 127.0.0.1:11211; #error_page 404 @fallback; } }