联系我们
简单又实用的WordPress网站制作教学
当前位置:网站首页 > WordPress教程 > 正文

如何在WordPress中显示查询次数和页面加载时间

作者:98wpeu发布时间:2024-01-26分类:WordPress教程浏览:80


导读:我们的一位用户问到,其他网站如何在页脚显示查询次数和页面加载时间。You'lloftenseethispointinthebottomofthefoot,it...

我们的一位用户问到,其他网站如何在页脚显示查询次数和页面加载时间。You'll often see this point in the bottom of the foot,it may say:“1.248秒内有64个查询".在本文中,我们将向您展示如何在WordPress中显示查询次数和页面加载时间。

Only need to pay the following code to the intention location in the subject file(such as footer.php).

<?php echo get_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds.
由❤️托管WPCode
在WordPress中一键使用

并刷新页面。您将看到查询的数量和执行时间。

标签:加载页面时间如何在WordPress


WordPress教程排行
最近发表
网站分类
标签列表