{"id":6548,"date":"2021-11-04T19:26:43","date_gmt":"2021-11-04T19:26:43","guid":{"rendered":"https:\/\/www.s-sols.com\/?post_type=doc&#038;p=6548"},"modified":"2022-07-28T13:05:31","modified_gmt":"2022-07-28T13:05:31","slug":"external-cron-setup-wp","status":"publish","type":"doc","link":"https:\/\/www.s-sols.com\/docs\/wordpress\/external-cron-setup-wp","title":{"rendered":"How to set up external Cron for site WordPress"},"content":{"rendered":"<p style=\"text-align:justify\">\n  Settings are made on the <a href=\"#hosting\">hosting<\/a> and if needed on the <a href=\"#site\">site<\/a>. If not done on the site, then external<span style=\"font-size:12pt\"> <\/span>Cron will work as an additional and stabilize\/ensure the timely completion of tasks.\n<\/p>\n<h2><a id=\"hosting\"><\/a>Hosting setup<br \/>\n<\/h2>\n<p style=\"text-align:justify\">\n  On the hosting, in the task schedule settings, add a periodic (for example, once a minute) call to the site page https:\/\/&lt;yoursite&gt;\/wp-cron.php should be added.\n<\/p>\n<p style=\"text-align:justify\">\n  For example, here&#8217;s what the task schedule settings look like on <a href=\"https:\/\/fornex.com\/en\/help\/cron-cpanel\/\" rel=\"nofollow noopener\" target=\"_blank\">Fornex hosting<\/a>. It is needed to create a task to execute<span style=\"font-size:12pt\"> <\/span><code>wget -O - -q -t 1 https:\/\/&lt;yoursite&gt;\/wp-cron.php<\/code>.\n<\/p>\n<p style=\"text-align:justify\"><strong>Note<\/strong>. In the case of WordPress in <a href=\"https:\/\/wordpress.org\/support\/article\/create-a-network\/\" rel=\"nofollow noopener\" target=\"_blank\">multi-site<\/a> mode, it is enough to create a task for the main site only.\n<\/p>\n<h2><a id=\"site\"><\/a>Site setup<br \/>\n<\/h2>\n<p style=\"text-align:justify\">\n  In the site\u2019s configuration file &#8220;wp-config.php&#8221; it is needed to add directive <code>define( 'DISABLE_WP_CRON', true );<\/code>.\n<\/p>\n<p style=\"text-align:justify\">\n  For example:\n<\/p>\n<p><code class=\"p\">&lt;?php<br \/><strong>define( 'DISABLE_WP_CRON', true );<\/strong><br \/>define( 'WP_CACHE', true );<br \/><span style=\"display:inline-block;height:1em\"><span style=\"display:none\">.<\/span><\/span><br \/>\/**<br \/> * The base configuration for WordPress<br \/> *<br \/>...<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Settings are made on the hosting and if needed on the site. If not done on the site, then external Cron will work as an additional and stabilize\/ensure the timely completion of tasks. Hosting setup On the hosting, in the task schedule settings, add a periodic (for example, once a minute) call to the site&#8230;<\/p>\n","protected":false},"author":18,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"rank_math_lock_modified_date":false},"categories":[129],"tags":[],"class_list":["post-6548","doc","type-doc","status-publish","hentry","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc\/6548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/types\/doc"}],"author":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/users\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/comments?post=6548"}],"wp:attachment":[{"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/media?parent=6548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/categories?post=6548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.s-sols.com\/api\/wp\/v2\/tags?post=6548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}