[wordpress插件] Debug Bar Query Count Alert调试栏查询计数警报

wordpress 插件 文章 2020-04-14 03:10 471 0 全屏看文

AI助手支持GPT4.0

评分
100
描述

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.

将“调试栏”按钮中的默认文本(默认为英文为“ Debug Bar”)替换为页面的查询计数和总SQL时间。

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.

如果有200个以上的查询,或者它们花费了1秒钟以上的时间,则该按钮将为红色;如果该页面需要100个以上的查询,或者花费0.5秒以上的时间,则该按钮为橙色。

Requires the Debug Bar plugin and for the constant SAVEQUERIES to be true

需要调试栏插件,并且常量 SAVEQUERIES 为真

.

Inspired by the Admin Bar on WordPress.com VIP, which offers similar functionality.

受WordPress.com VIP上的管理栏的启发,该管理栏提供了类似的功能。

安装步骤

    1. Upload to the /wp-content/plugins/ directory
    2. 上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

下载地址
https://downloads.wordpress.org/plugin/debug-bar-query-count-alert.0.1.zip
-EOF-

AI助手支持GPT4.0