会员登录 | 会员注册 | 意见建议 | 网站地图

站长资源综合门户

当前位置:首页 > 站长学院 > 编程程序 > PHP企业级应用缓存技术详解

PHP企业级应用缓存技术详解

时间:2012-02-27 09:30:57   作者:   来源:   点击:

proxy_send_timeout 90;

proxy_read_timeout 90;

proxy_buffer_size 4k;

proxy_buffers 4 32k;

proxy_busy_buffers_size 64k;

proxy_temp_file_write_size 64k;

mod_proxy的例子:

<VirtualHost *>

ServerName zxsv

ServerAdmin admin@zxsv

# reverse proxy setting

ProxyPass / .zxsv:8080/

ProxyPassReverse / .zxsv:8080/

# cache dir root

CacheRoot “/var/www/proxy”

# max cache storage

CacheSize 50000000

# hour: every 4 hour

CacheGcInterval 4

# max page expire time: hour

CacheMaxExpire 240

# Expire time = (now – last_modified) * CacheLastModifiedFactor

CacheLastModifiedFactor 0.1

# defalt expire tag: hour

CacheDefaultExpire 1

# force complete after precent of content retrived: 60-90%

CacheForceCompletion 80

CustomLog /usr/local/apache/logs/dev_access_log combined

</VirtualHost>

分享到:

网友评论

热门编程程序