Magento和Google Sitemap - Cron [英] Magento and Google Sitemap - Cron

查看:255
本文介绍了Magento和Google Sitemap - Cron的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Magento的新手。
我要配置自动生成的Google网站地图。我已经阅读无处不在如何设置cron工作Magento与cPanel,如何从后端等配置。

I'm a newbie in Magento. I'm tring to configure an auto-generated Google Site Map. I've read everywhere how to set up cron job for Magento with cPanel, how to configure from backend and so on.

我当前的设置:在系统 - >配置 - > Google Sitemap - > Generation Settings - > Enabled = YES。我已经在目录 - > Google Sitemap中创建了站点地图,当然,我可以手动生成没有任何问题。

My current settings: under System -> Configuration -> Google Sitemap -> Generation Settings -> Enabled = YES. I've create the sitemap on Catalog -> Google Sitemap, of course, which I can manually generate without any problem.

但如果我检查文件 app / code / core / Mage / Sitemap / etc / config.xml 似乎没有更新(不同的内容btw config.xml和后端)。看来,文件系统的最后更新是在20/04/2012,而不是今天。 (我也运行Fluch Magento和存储缓存)

But if I check the file /app/code/core/Mage/Sitemap/etc/config.xml it seems to be not updated (different content btw config.xml and backend). It seems also that the last update on filesystem is perormed on 20/04/2012, instead of today. (I've also run the Fluch Magento and Storage Cache)

<generate>
    <enabled>0</enabled>
    <error_email/>
    <error_email_template>sitemap_generate_error_email_template</error_email_template>
    <error_email_identity>general</error_email_identity>
</generate>

有人可以帮助我吗?
谢谢!

Can someone help me out? Thanks!

推荐答案

在Magento和Cron设置中,使用cron.sh进行触发。此外,我相信信任但验证这意味着设置cron,然后实际查看cron作业输出表以正确运行。

On Magento and Cron setups, use cron.sh to do the triggering. Also I believe in Trust but verify which means set up cron and then actually view the cron job output table for proper runs.

进入您的高级系统配置并将Cron成功历史记录的生命周期和失败寿命设置为1440,因此您正在监视24小时的时间。

Go into your Advanced System Config and set Cron Success History Lifetime and Failure Lifetime both to 1440 so you are monitoring a 24 hour span of time.

现在,您将可以看到索引操作,等等。

You will now be able to see index operations, etc in the time stream. There will be about 300 jobs listed in your Jobs Successful section over the 24 hour timespan.

现在运行 cron日志监视器,看看你的cron是否真的在运行。我遇到很多次,当人说的是,但后来尝试验证它,发现它在一对夫妇尝试后出现。

Now run this cron log monitor to see if your cron really is running. I've run into many times when the person says it is, but then tries to verify it and finds that it pooped out after a couple tries.

下一个问题是语句但是如果我检查文件/app/code/core/Mage/Sitemap/etc/config.xml它似乎没有更新。首先,这是一个配置模板,它不会更新。启用在数据库中完成。您可以在系统 - >配置 - >目录 - > Google Sitemap - >生成设置 - >启用=是应该是该设置,一旦保存,保持在是。 Magento参考存储在数据库中的此设置,而不是config.xml来实际运行网站地图生成。

The next issue is the statement But if I check the file /app/code/core/Mage/Sitemap/etc/config.xml it seems to be not updated. First, this is a configuration template, it will not update. The enable is done in the database. You check it in System -> Config -> Catalog -> Google Sitemap -> Generation Settings -> Enable = Yes should be the setting and once saved, stays on Yes. Magento consults this setting stored in the database, not the config.xml to actually run the sitemap generation.

现在,如果您已经在目录 ,实际的sitemap.xml文件中的日期/时间戳应该开始更新。

Now if you've got the sitemap properly created under Catalog -> Google Sitemap, the date/time stamp on your actual sitemap.xml file should start updating.

这篇关于Magento和Google Sitemap - Cron的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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