[WordPress] 外掛分享: PHP Peak Memory Checker

首頁外掛目錄 › PHP Peak Memory Checker
WordPress 外掛 PHP Peak Memory Checker 的封面圖片
全新外掛
安裝啟用
尚無評分
1350 天前
最後更新
問題解決
WordPress 5.2.3+ PHP 7.3+ v1.1.0 上架:2022-06-08

內容簡介

這個外掛可以檢查 PHP 的記憶體使用情況,如果最大記憶體使用超過閾值,就會發送電子郵件給管理員。
此郵件會包括記憶體使用、$_SERVER 和 $_REQUEST 值。
當與外部通知插件一起使用時,可將電子郵件作為通知發送至 Slack。

開發者提示

閾值的預設值為 32 MB,但可設置為任何值。請在 wp-config.php 檔案中定義 WP10_MEMORY_ALERT_THRESHOLD (以兆位為單位)。
插件有一個名為 "cpmp_delete_things_list" 的篩選器鉤子。此鉤子可用於從 $_REQUEST 檢索的任何內容中刪除任何內容。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.0) 或搜尋安裝

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

原文外掛簡介

This plugin checks PHP memory usage and sends an email to the administrator if the maximum memory usage exceeds the threshold.
This email will include the memory usage, $_SERVER, and $_REQUEST values.
When used in conjunction with the External Notification plugin, the email can be sent as a notification to Slack.
For developer

The default value for the threshold is 32 MB, but can be set to any value. Please define WP10_MEMORY_ALERT_THRESHOLD in megabytes in wp-config.php file.
The plugin has a filter hook called “cpmp_delete_things_list”. This hook can be used to delete any content from the information retrieved by $_REQUEST.

文章
Filter
Apply Filters
Mastodon