NGINX
NGINX Trac
3rd Party Modules
Security Advisories
CHANGES
OpenResty
ngx_lua
Tengine
在线学习资源
NGINX 开发从入门到精通
NGINX Modules
ngx_echo
feiandxs
V2EX  ›  NGINX

nginx/tengine目前有除了ngx_purge_cache之外的清除缓存方案么?不需要手动指定URL,而是批量清除某种后缀名文件的所有缓存。

  •  
  •   feiandxs ·
    ibegyourpardon · Jan 31, 2012 · 7127 views
    This topic created in 5223 days ago, the information mentioned may be changed or developed.
    3 replies    1970-01-01 08:00:00 +08:00
    yyfearth
        1
    yyfearth  
       Jan 31, 2012
    这个也困扰我很久,希望有人提供方法。
    目前用的笨方法是用rm -rf, killall nginx清理所有缓存。
    我的需求和你不完全一样,我是希望可以根据文件夹清理缓存,比如~/web/a/*
    yyfearth
        2
    yyfearth  
       Jan 31, 2012
    如果能够支持wildcard或者regex,我们两个的需求都可以满足。
    feiandxs
        3
    feiandxs  
    OP
       Jan 31, 2012
    @yyfearth 一晚上各种查询还是没能找到合适的现存的方法。
    然后我思考了下用外部脚本批量跑PURGE,发现也不太实用,看来还是只能切换到SQUID去了,因为用户需要手动刷新缓存的需求太多了。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1448 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 17:03 · PVG 01:03 · LAX 10:03 · JFK 13:03
    ♥ Do have faith in what you're doing.