ngx_cache_purgenginx 缓存清除插件

联合创作 · 2023-10-01 15:53

ngx_cache_purge 是 nginx 模块,此模块可以清理 nginx 的 FastCGI、proxy、 SCGI 和 uWSGI 的缓存。


配置指令(相同位置语法)


fastcgi_cache_purge



  • syntax: fastcgi_cache_purge on|off|<method> [from all|<ip> [.. <ip>]]


  • default: none


  • context: httpserverlocation



允许从 FastCGI 的缓存中清除所选页面。


proxy_cache_purge



  • syntax: proxy_cache_purge on|off|<method> [from all|<ip> [.. <ip>]]


  • default: none


  • context: httpserverlocation



允许从代理缓存中清除所选页面。


示例:nginx扩展模型ngx_cache_purge缓存清理插件

浏览 32
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报