Drupal 7对于“第一次加载”太慢 [英] Drupal 7 is too slow on "first load"

查看:156
本文介绍了Drupal 7对于“第一次加载”太慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望有人可以帮助我这个Drupal 7的问题。我注意到,当我输入第一次的站点地址时,加载时间非常慢。只需开始加载文件并显示内容大约需要20(平均)秒。喜欢它有一些延迟。然而,在那段时间之后,它的速度非常快,一切顺利。一旦页面被加载,我们可以快速刷新它们,而不会有任何延迟。

I hope someone can help me with this Drupal 7 issue. I noticed that loading time is very slow when I enter the site address for the "first time". It takes about 20 (average) seconds just to start loading files and displaying the content. Like it has some delay. However, after that period it's very fast and everything is ok. Once the page(s) is/are loaded, we can refresh them quickly and without any delay.

我附加了一个图像来查看Chrome的网络瀑布。

I attach an image to see Chrome's Network Waterfall.

谢谢大家。

图片: http://i.stack.imgur.com/vuejk.png (看第二行)

[更新]我使用php-apc但仍然有同样的问题。

[UPDATE] I'm using php-apc but still have the same problem.

推荐答案

这是(很可能)因为Drupal Cron任务每几个小时/天运行一次(取决于设置)。 Drupal然后执行所有排队的cron作业..这可能需要很长时间。

This is (most likely) because of the Drupal Cron tasks that are run every few hours/days (depending on settings). Drupal then executes all the queued cron jobs.. which can take a long time.

看看这个drupal.stackoverflow 页面。

e:另外,这个调整可能有帮助,但我还没有尝试过这个: http ://drupal.org/node/1576686

e: Also, this tweak may help, but I haven't tried this myself: http://drupal.org/node/1576686

这篇关于Drupal 7对于“第一次加载”太慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆