Drupal 7 在“第一次加载"上太慢了 [英] Drupal 7 is too slow on "first load"

查看:27
本文介绍了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天全站免登陆