
內容簡介
OPcache Reset 外掛在更新 WordPress 核心、佈景主題和檔案後,自動清除 OPcache。此外掛特別支援透過 Linux cron 進行的 WordPress 更新,確保網站效能最佳化。
【主要功能】
• 自動清除 OPcache 於更新後
• 支援記憶體與檔案型 OPcache 清除
• 兼容 cron 基礎的 WordPress 更新
• 提供 WP-CLI 命令進行手動管理
• 無需外部依賴與 shell 命令
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
This plugin clears OPcache after updating WordPress core, themes, and files.
Unlike other plugins, it is also compatible with WordPress updates made by Linux cron.
Features
Automatic OPcache reset after plugin/theme/core updates
Clears both memory-based and file-based OPcache
Works with cron-based WordPress updates (CLI context)
WP-CLI commands for manual OPcache management
Zero external dependencies and no shell commands
Configuration
The plugin works automatically for web-based updates. For CLI-based updates (cron, WP-CLI), configure your PHP-FPM socket:
Create a CacheTool-compatible .cachetool.yml in your WordPress root:
adapter: fastcgi
fastcgi: /run/php-fpm/www.sock
WP-CLI Commands
Reset OPcache from the command line:
wp opcache reset
Show OPcache status and statistics:
wp opcache status
Output status as JSON:
wp opcache status --format=json
