[WordPress] 外掛分享: OPcache Reset

首頁外掛目錄 › OPcache Reset
WordPress 外掛 OPcache Reset 的封面圖片
500+
安裝啟用
★★★★
4/5 分(1 則評價)
17 天前
最後更新
100%
問題解決
WordPress 5.0+ PHP 7.4+ v2.4.3 上架:2018-05-31

內容簡介

OPcache Reset 外掛在更新 WordPress 核心、佈景主題和檔案後,自動清除 OPcache。此外掛特別支援透過 Linux cron 進行的 WordPress 更新,確保網站效能最佳化。

【主要功能】
• 自動清除 OPcache 於更新後
• 支援記憶體與檔案型 OPcache 清除
• 兼容 cron 基礎的 WordPress 更新
• 提供 WP-CLI 命令進行手動管理
• 無需外部依賴與 shell 命令

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.4.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「OPcache Reset」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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

延伸相關外掛

文章
Filter
Mastodon