Linux 软件免费装
Banner图

奶爸笔记 EdgeOne 缓存清理器

开发者 Naibabiji
更新时间 2026年4月15日 09:28
PHP版本: 7.2 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

cache cdn purge tencent cloud edgeone

下载

2.1.0 2.2.0 2.3.0

详情介绍:

一款高效的 WordPress 插件,可在文章、页面或自定义文章类型发布、更新、删除时,自动清理腾讯云 EdgeOne 缓存。

安装:

方法一:上传安装
  1. 下载插件压缩包
  2. 登录 WordPress 管理后台
  3. 进入「插件」→「安装插件」→「上传插件」
  4. 选择并上传插件压缩包
  5. 启用插件
方法二:手动安装
  1. Upload the plugin folder to the wp-content/plugins/ directory
  2. 登录 WordPress 管理后台 dashboard
  3. 进入「插件」页面
  4. 找到“奶爸笔记 EdgeOne 缓存清理器”插件并启用

屏幕截图:

  • 快速清理按钮——针对近期文章的手动清理选项
  • 日志查看器——查看详细的缓存清理操作日志

升级注意事项:

2.3.0 Enhanced Nginx cache purge with ngx_cache_purge module, custom random endpoint paths, and HTTPS-based purge requests. Update your Nginx configuration with the new purge path. See settings page for details. 2.0 Major update with complete code refactoring, asynchronous mode support, statistics dashboard, and enhanced security. Backup your settings before upgrading. 1.4 Adds optional Nginx server-side cache integration. Disabled by default — no action needed unless your server uses Nginx FastCGI or Proxy cache. 1.3
  • Improved localization and language files
1.2
  • Cache plugin integrations now work correctly with proper hook detection
  • Manual purge now supports host-specific "Purge All" using the purge_host method
  • Added manual log clearing functionality for easier debugging
  • Improved compatibility with WordPress 6.0+ and various PHP versions
1.1
  • Added cache plugin integration and optional prefetching functionality
1.0 Initial release - No upgrade required

常见问题:

什么是 EdgeOne?

EdgeOne 是腾讯云推出的边缘计算与 CDN 服务,提供全球内容分发与安全防护能力。

为什么需要清理缓存?

更新 WordPress 内容后,EdgeOne 可能仍返回旧缓存。本插件可确保访客立即看到最新内容。

本插件安全吗?

支持,插件可在 wp-config.php 中存放 API 密钥,避免密钥保存在数据库或后台界面中。

文章更新时会清理哪些 URL?

The plugin automatically purges:

  • The post/page URL
  • Homepage
  • Category archives the post belongs to
  • Tag archives the post has
  • Author archive
  • Date-based archives

Frequently Asked Questions

Do I need the Nginx Cache Integration?

不需要,该功能为可选。仅当服务器使用 Nginx 层级页面缓存(FastCGI 或代理缓存)时才需开启。如果你使用 WP Rocket、W3 Total Cache、LiteSpeed Cache 等 WordPress 缓存插件,则无需启用。

Nginx 缓存与 EdgeOne CDN 缓存有什么区别?

EdgeOne CDN cache is distributed across edge nodes worldwide and is managed via the Tencent Cloud API. Nginx cache is a server-side page cache stored on your own server's filesystem, managed by Nginx's fastcgi_cache or proxy_cache directives. They are separate caching layers; this plugin can clear both at the same time.

插件为何只删除缓存文件,而不删除并重建 Nginx 缓存目录?

删除并重建目录会出现短暂窗口期,可能导致 Nginx 无法写入新缓存。仅删除目录内文件、保留目录本身,可让清理更安全,避免 Nginx 报错。

Nginx 缓存路径显示“不可写”,该如何解决?

The PHP process (typically www-data or nginx) needs write permission on the cache directory. Run chown www-data:www-data /your/cache/path or chmod 755 /your/cache/path as appropriate for your server setup.

2.3.0

  • 增强 Nginx 缓存清理功能:将递归删除文件改为通过 ngx_cache_purge 模块发起 HTTP 请求,实现 URL 精准清理
  • Added customizable "Purge Endpoint Path" option — use a random string (e.g., /xK9mPurge_q7z) for the Nginx purge URL to enable allow all; without security concerns
  • Switched purge requests from http://127.0.0.1 to https://your-domain/custom-path, resolving HTTP-to-HTTPS redirect issues on BT Panel (宝塔) and similar setups
  • 优化 Nginx 清理日志提示:将原始 HTML 输出改为易懂的文字说明(例如:“未缓存——返回的是页面内容而非清理响应”)
  • Nginx 缓存操作新增按 URL 记录清理日志功能
  • 全站清理时新增文件删除降级方案
  • Updated Nginx configuration example to use allow all; deny none; pattern with custom random path
  • 新增面向宝塔面板用户的配置教程链接

更新日志:

2.3.0 2.2.0 2.1.0 2.0 1.4 1.3 1.2 1.1 1.0