小飞说

给网站底部添加数据库查询和页面加载耗时功能

使用方法

1、在 zibll 主题目录下,themes/zibll/footer.php文件中的顶部添加下面添加下面的代码:

[hidecontent type="reply" desc="隐藏内容:评论后查看"]

<!---给网站数据库查询&页面加载耗时功能--->
<center>
<p> 本次数据库查询:<?php echo get_num_queries(); ?>次 页面加载耗时<?php timer_stop(3); ?> 秒</p>
</center>
<!---网站数据库查询&页面加载耗时功能--->

[/hidecontent]

[hidecontent type="reply" desc="隐藏内容:评论后查看"]

[/hidecontent]

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »

因本文不是用Markdown格式的编辑器书写的,转换的页面可能不符合AMP标准。