[英]Slow initial website load, faster subsequent loads
My site www.slople.com is a mix of self-programmed things (the whole slope-finder etc and the mobile-site) and Wordpress/Buddypress-things (Slople Unity, Blog). 我的网站www.slople.com包含了一些自编程的东西(整个斜坡查找器等以及移动网站)和Wordpress / Buddypress的东西(Slople Unity,博客)。
I notice that the page takes longer to load on the first request, no matter where it goes (startpage, particular slope, blog) than subsequent pageloads. 我注意到,与第一个请求相比,该页面在何处(起始页面,特定坡度,博客)的加载时间都比后续页面加载时间更长。
The site is running on my "own" VPS with CentOS and Plesk 11. I use APC, nginx, Apache, MySql and PHP 5.1 该站点通过CentOS和Plesk 11在我自己的“ VPS”上运行。我使用APC,nginx,Apache,MySql和PHP 5.1
I suppose some of you could have an idea where I'd have to look into or what could be the cause. 我想你们中的一些人可能会知道我需要研究的地方或可能的原因。 I always think it could depend on my DNS (I run my own DNS-service with plesk).
我一直认为这可能取决于我的DNS(我使用plesk运行我自己的DNS服务)。
The machine is powerful enough, never uses more than 1/3 of it's RAM. 该机器功能强大,永远不会使用超过其1/3的RAM。 Thanks for any inputs!
感谢您的任何投入!
Try "Page Speed" tab of FireBug. 尝试使用FireBug的“页面速度”标签。
As I see your server has no gzip compression for static content. 如我所见,您的服务器没有静态内容的gzip压缩。 Compression can be switched on in nginx config .
可以在nginx config中打开压缩功能。
Also, website has a lot of separate PNG, CSS and JS files. 另外,网站上有很多单独的PNG,CSS和JS文件。 I know some CMS templates allows to gather all JS and CSS in single files.
我知道一些CMS模板允许将所有JS和CSS收集在单个文件中。 PNG files also can be gathered in single file.
PNG文件也可以收集在单个文件中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.