简体   繁体   English

Magento产品在前端并未始终如一

[英]Magento products not showing up consistently in frontend

I have Magento site running with 20000 plus products. 我有Magento网站运行20000多个产品。 Sometimes it does not show the products in the frontend. 有时它不会在前端显示产品。 It says "There are no products matching the selection", but the products are still there in the backend site. 它说“没有符合选择的产品”,但产品仍然存在于后端网站中。

I know I have to run re-indexing process, and whenever I complete the re-indexing process all products are there in the frontend. 我知道我必须运行重新索引过程,每当我完成重新索引过程时,所有产品都在前端。

So now, my question is: Why this is happening again and again? 所以现在,我的问题是:为什么这种情况一次又一次地发生? This is now fourth time I faced this problem. 这是我第四次遇到这个问题。 I want to know the real causes of this issue. 我想知道这个问题的真正原因。 I am very afraid. 我很害怕。

Thanks 谢谢

The two most likely cuplrits are caching and indexing problems (unless of course you are using a clustered database, in which case that is probably the culprit). 两个最有可能的cuplrits是缓存和索引问题(当然,除非你使用的是集群数据库,在这种情况下,这可能是罪魁祸首)。 If it's feasible on your site (or on a dev environment, which I am sure you had the foresight to create), disable Magento's caching temporarily and see if that alleviates the issue. 如果它在您的站点上可行(或者在开发环境中,我确信您有远见来创建),请暂时禁用Magento的缓存,看看是否可以缓解此问题。 Also try disabling the flat_catalog settings to see if that is having an effect. 还可以尝试禁用flat_catalog设置以查看是否有效。

Also make sure that your browser cache is set to always refresh from the server. 还要确保将浏览器缓存设置为始终从服务器刷新。

Hope that helps! 希望有所帮助!

Thanks, Joe 谢谢,乔

It sounds like you need to setup your cronjobs to re-run the indexes. 听起来你需要设置你的cronjobs来重新运行索引。 Certainly with prices, the custom price indexes are only valid for a set period of time, then the cronjob extends those periods if the Catalog Price Rule is still active. 当然,对于价格,自定义价格指数仅在设定的一段时间内有效,然后如果目录价格规则仍处于活动状态,则cronjob会延长这些期间。

Here is a wiki post on the process of setting up your cronjobs. 这是关于设置cronjobs过程的wiki 帖子

Note that cron itself can cause problems, so as Joseph suggests, make sure you have a dev and staging environment setup that mirrors production so that you can check the configuration. 请注意,cron本身可能会导致问题,因此正如Joseph建议的那样,请确保您具有镜像生产的开发和暂存环境设置,以便您可以检查配置。

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

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