Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions app/code/Magento/Sitemap/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ class Observer
*/
const XML_PATH_GENERATION_ENABLED = 'sitemap/generate/enabled';

/**
* Cronjob expression configuration
*/
const XML_PATH_CRON_EXPR = 'crontab/default/jobs/generate_sitemaps/schedule/cron_expr';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to deprecate this instead of removing

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would agree, but a) Magento does not follow semantic versioning between marketing releases and b) it points at the wrong config path so it's incredibly unlikely this is used anywhere directly.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In any way it is better to stay on a safe side and follow conventions where possible.


/**
* Error email template configuration
*/
Expand Down
11 changes: 11 additions & 0 deletions app/code/Magento/Sitemap/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,16 @@
</valid_paths>
</file>
</sitemap>
<crontab>
<default>
<jobs>
<sitemap_generate>
<schedule>
<cron_expr>0 0 * * *</cron_expr>
</schedule>
</sitemap_generate>
</jobs>
</default>
</crontab>
</default>
</config>