简体   繁体   English

Magento中的初始页面加载速度非常慢

[英]Initial Page Load in Magento is Incredibly Slow

I am running Magento CE 1.7 on a WAMP server and the initial page load time is ridiculously slow. 我在WAMP服务器上运行Magento CE 1.7,初始页面加载时间非常慢。 I am running Apache 2.2.22 32 bit with PHP 5.3.13. 我用PHP 5.3.13运行Apache 2.2.22 32位。 The site is hosted on a box with a 4GB of RAM and a quad core 2.0ghz processor. 该网站托管在一个4GB RAM和四核2.0ghz处理器的盒子上。 We are running a T-1 connection to the box. 我们正在运行T-1连接到盒子。

I have tried configuring the Magento cache, tweaking SQL my.cnf, have APC installed for PHP. 我已经尝试配置Magento缓存,调整SQL my.cnf,安装了适用于PHP的APC。 I have even tried compiling the entire magento site and using flat catalog categories and products, but even when I try to load with those settings they make seemingly no difference at all. 我甚至尝试编译整个magento网站并使用平面目录类别和产品,但即使我尝试加载这些设置,它们看起来似乎没有任何区别。

It seems like every tweak I have tried to apply to the server does not improve load time at all. 似乎我试图应用于服务器的每个调整都没有改善加载时间。 I used Chrome developer tools and it looks like the initial load time for the first page is what is taking forever (tried to attach a screenshot but it won't let me - load time is around 15 sec). 我使用了Chrome开发人员工具,看起来第一页的初始加载时间是永远的(尝试附加屏幕截图,但它不会让我 - 加载时间大约是15秒)。 Now I am beginning to wonder if it is a configuration problem with Apache or something. 现在我开始怀疑它是否是Apache的配置问题。 Any ideas at all?! 有什么想法吗?!

If you would like to see the live site it is currently at www.nitronewt.com 如果您想查看实时网站,请访问www.nitronewt.com

Thanks 谢谢

You need to set your cache method to apc after installing apc for php. 安装apc for php后,需要将缓存方法设置为apc。

To do it, open file MAGENTO_DIRECTORY/app/etc/local.xml 为此,请打开文件MAGENTO_DIRECTORY / app / etc / local.xml

Add following tags in <global></global> <global></global>添加以下标记

<cache>
<backend>apc</backend>
<prefix>YOURPREFIX_</prefix>
</cache>

Also confirm that all cache types are enabled in Magento admin System > Cache Management. 同时确认在Magento管理系统>缓存管理中启用了所有缓存类型。

After editing local.xml, refresh all cache types. 编辑local.xml后,刷新所有缓存类型。

If your home page consists of lot of images. 如果您的主页包含大量图片。

1)Check the image files size.Try to keep image files size minimum.
2)Use png images.
3)You can also try to compress the css files.
4)Try disabling log.
System > Configuration > Advanced > Developer > Log Settings > Enabled: No 
5) Try reindexing. 

Then check whether this works for you or not? 然后检查这是否适合你?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM