
內容簡介
這個外掛可以檢查 PHP 的記憶體使用情況,如果最大記憶體使用超過閾值,就會發送電子郵件給管理員。
此郵件會包括記憶體使用、$_SERVER 和 $_REQUEST 值。
當與外部通知插件一起使用時,可將電子郵件作為通知發送至 Slack。
開發者提示
閾值的預設值為 32 MB,但可設置為任何值。請在 wp-config.php 檔案中定義 WP10_MEMORY_ALERT_THRESHOLD (以兆位為單位)。
插件有一個名為 "cpmp_delete_things_list" 的篩選器鉤子。此鉤子可用於從 $_REQUEST 檢索的任何內容中刪除任何內容。
外掛標籤
開發者團隊
原文外掛簡介
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.
