Skip to content

Commit

Permalink
ENGCOM-1419: [Forwardport] Add default schedule config for sitemap_ge…
Browse files Browse the repository at this point in the history
…nerate job #14908

 - Merge Pull Request #14908 from rostyslav-hymon/magento2:2.3-develop-PR-port-14822
 - Merged commits:
   1. 0b85921
   2. 01f6fc2
   3. a324f86
  • Loading branch information
magento-engcom-team committed Apr 30, 2018
2 parents 910ca33 + a324f86 commit f31c85c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/code/Magento/Sitemap/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class Observer

/**
* Cronjob expression configuration
*
* @deprecated Use \Magento\Cron\Model\Config\Backend\Sitemap::CRON_STRING_PATH instead.
*/
const XML_PATH_CRON_EXPR = 'crontab/default/jobs/generate_sitemaps/schedule/cron_expr';

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>

0 comments on commit f31c85c

Please sign in to comment.