Drupal 7 在“第一次加载"上太慢了

编程入门 行业动态 更新时间:2024-10-20 06:30:33
本文介绍了Drupal 7 在“第一次加载"上太慢了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我希望有人能帮助我解决这个 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/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/node/1576686

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

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

更多推荐

[db:关键词]

本文发布于:2023-04-20 00:49:44,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/972727.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:慢了   加载   Drupal   quot

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!