Drupal cron 作业和重新索引站点问题
我的 drupal 站点有问题。当我多次运行 cron.php 时,索引结果停留在 99%。并且新内容不会出现在搜索结果中。我可以做什么来解决这个问题?
我尝试将 max_allowed_packet 设置为 24M 和 mysqli.reconnect = On
I have a problem in my drupal site. When I run the cron.php multiple times, the index result got stuck at 99%. And the new contents won't show up in search results. What can I do to fix this?
I have tried setting max_allowed_packet to 24M and mysqli.reconnect = On
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过减少每次运行要索引的项目数量?在我这样做之前我也遇到了同样的问题。
转到“搜索设置”页面,并将每次 cron 运行要索引的项目数更改为 10。然后运行 cron 并查看您得到的结果。您可能需要跑几次才能赶上,但之后就应该没问题了。
Have you tried to lower the number of items to index per run? I had the same issue till I did that.
Goto the Search Settings page and change the number of items to index per cron run to 10. Then run cron and see what you get. You may have to run a few times to catch up, but then you should be fine.
如果您在某些节点中使用了 PHP 过滤器并使用了
drupal_goto()
这可能会导致索引问题。如下所示: Cron 不能在 Drupal 上运行:drupal_goto() 案例。 http://drupal.org 上也有一个关于此问题的帖子:drupal_goto 上的 cron 中断If you have used the PHP filter in some of your nodes and used a
drupal_goto()
this can cause a problem with indexing. As seen here: Cron cannot run on Drupal: the drupal_goto() case. There is a thread on http://drupal.org about this as well: cron breaks on drupal_goto