[WordPress] 外掛分享: Debug Bar Query Count Alert

首頁外掛目錄 › Debug Bar Query Count Alert
10+
安裝啟用
★★★★★
5/5 分(2 則評價)
4427 天前
最後更新
問題解決
WordPress 3.1+ v0.1 上架:2014-02-01

內容簡介

此外掛替換了Debug Bar按鈕中預設的文字(在英文中預設為「Debug Bar」),改成顯示頁面的查詢次數和總 SQL 時間。如果查詢超過 200 次或執行時間超過 1 秒,則按鈕會變成紅色;如果頁面需要超過 100 次查詢或執行時間超過 0.5 秒,則按鈕會變成橙色。

需要安裝Debug Bar外掛和將常數SAVEQUERIES設為true。

功能靈感來自於 WordPress.com VIP 的管理列,提供了類似的功能。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1) 或搜尋安裝

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

原文外掛簡介

Replaces the default text in the Debug Bar button (which is “Debug Bar” by default in English) with the page’s query count and total sql time. The button will be red if there were more than 200 queries or they took more than 1 second to run, and orange if the page required more than 100 queries or took more than 0.5 seconds to run.
Requires the Debug Bar plugin and for the constant SAVEQUERIES to be true.
Inspired by the Admin Bar on WordPress.com VIP, which offers similar functionality.

延伸相關外掛

文章
Filter
Mastodon