Wordpress网站等待时间过长,使用Pindom工具


Wordpress Website too much wait Time with Pingdom Tool

我正在开发一个wordpress网站:

- it's hosted on a VMWARE Linux Virtual Server with 2 core and 4GB RAM.
- it's the only website (development server) so no others website access.
- has Apache Module mod_deflate on text, html, javascript, css, xml
- it runs a lot of javascript stuff and the total size of the page is about 1,6 MB
- average cpu load is very low (0% to 5%)
- the server has 1GB RAM Free
- my ISP verified SAN access statistics and latency times are very low (some ms)

这是Pingdom网站速度测试的加载时间测试:http://tools.pingdom.com/fpt/#/dMWeVi/http://www.watcheswholesale.eu/

它显示3.9秒的等待时间

是否有一个"检查列表"来理解为什么服务器在将内容发送到浏览器之前会损失这几秒钟
感谢

我曾经对一个wordpress安装进行过评测,因为加载时间太长而感到尴尬。

事实证明,使用一些操作码缓存(如APC)可以将时间减少一半,而解析一个巨大的.po本地化文件则可以减少一半。做了一个快速补丁,将其缓存在php数组中,并最终在一秒内获得加载时间(这仍然太多,但几乎无法忍受)。

现在我想,从gettext文件中删除无用的语言也会有所帮助。

评测本身就像在代码

上添加基于microtime(1)的标签一样愚蠢

您的根本问题是网站生成页面的时间太长-我首先要查看进行了多少DB调用以及需要多长时间-查询日志可以帮助您做到这一点。

您还需要启用"保持活动",以便重用TCP连接,但这只会产生一点影响。