{"id":21854,"date":"2018-07-18T13:01:57","date_gmt":"2018-07-18T11:01:57","guid":{"rendered":"https:\/\/hetzner.co.za\/help-centre\/uncategorized\/how-to-fix-high-server-load-due-to-wp-cron-php-post-requests\/"},"modified":"2026-01-30T10:03:43","modified_gmt":"2026-01-30T08:03:43","slug":"high-server-load-wp-cron-post-requests","status":"publish","type":"post","link":"https:\/\/xneelo.co.za\/help-centre\/website\/high-server-load-wp-cron-post-requests\/","title":{"rendered":"How to fix high server load due to wp-cron.php POST requests"},"content":{"rendered":"<p>If your site or server is struggling with high load and you notice many\u00a0<strong>wp-cron.php POST<\/strong> requests in the www logs, then the solution is simple: <strong>replace the virtual wp-cron with a real cron at your selected schedule.<\/strong><\/p>\n<p>WordPress has a file called\u00a0<strong>wp-cron.php<\/strong>\u00a0that runs every time someone visits your site, which can severely throttle CPU usage and slow down busy sites, as this process only needs to run infrequently. You don\u2019t need to have it running in the background that often, using up valuable\u00a0hosting resources.<\/p>\n<p>Rather than letting wp-cron slow down your site, it should be disabled and let your system handle scheduled processes in the background \u2014 using a cronjob.<\/p>\n<h3>Disable wp-cron in WordPress<\/h3>\n<ol>\n<li>Use <a href=\"https:\/\/xneelo.co.za\/help-centre\/website\/upload-download-website\/\" target=\"_blank\" rel=\"noopener noreferrer\">FTP<\/a> to access your server and navigate to the\u00a0<strong>public_html<\/strong>\u00a0folder<\/li>\n<li>Add this line at the bottom of your\u00a0<strong>wp-config.php<\/strong> file, <span>just before the section that says <code>\/* That's all, stop editing! Happy blogging. *\/<\/code>:<\/span>\n<pre>define('DISABLE_WP_CRON', true);<\/pre>\n<\/li>\n<\/ol>\n<h3>Enable a real cronjob<\/h3>\n<p>You can now schedule these <em>wp-crons<\/em> to run once every couple of hours instead, using the\u00a0<a href=\"https:\/\/xneelo.co.za\/help-centre\/website\/cronjob-manager\/\" target=\"_blank\" rel=\"noopener noreferrer\">Cronjob Manager<\/a>\u00a0in konsoleH.<\/p>\n<div>\n<ol>\n<li><strong>Browse<\/strong>\u00a0to\u00a0<strong><a href=\"http:\/\/secure.konsoleh.co.za\/\" target=\"_blank\" rel=\"noopener noreferrer\">konsoleH<\/a><\/strong>\u00a0and log in\u00a0at\u00a0<a href=\"https:\/\/xneelo.co.za\/help-centre\/accounts-and-payments\/konsoleh-access-levels\/\" target=\"_blank\" rel=\"noopener noreferrer\">Admin or Domain level<\/a><\/li>\n<li>If Admin level: Select or search for a\u00a0<b>domain name<\/b>\u00a0in the\u00a0<b>Hosting Services<\/b>\u00a0tab<\/li>\n<li>Select\u00a0<b>Manage Services<\/b>\u00a0from the left-hand menu<\/li>\n<li>Select\u00a0<b>Cronjob Manager<\/b><\/li>\n<li>Select\u00a0<b>Add<\/b><\/li>\n<li>Next to\u00a0<b>Name<\/b>\u00a0you may give your cronjob a name e.g. wp-cron<\/li>\n<li>Next to\u00a0<b>Job\u00a0<\/b>enter the following:\n<pre>\/usr\/bin\/php-wrapper \/usr\/www\/users\/ftpuser\/wp-cron.php<\/pre>\n<p>where<em> ftpuser<\/em> is your FTP username.<\/li>\n<li>The\u00a0<b>Status<\/b>\u00a0option allows you to either have the cronjob\u00a0<b>Enabled<\/b>\u00a0or\u00a0<b>Disabled.<\/b><\/li>\n<li>Under\u00a0<b>When<\/b>\u00a0<b>to<\/b>\u00a0<b>execute<\/b>, set the\u00a0<b>time(s)<\/b>\u00a0when the cronjob needs to execute.<\/li>\n<li>Select\u00a0<b>Save<\/b>.<\/li>\n<\/ol>\n<\/div>\n<ul>\n<li style=\"list-style-type: none;\"><\/li>\n<\/ul>\n","protected":false,"plain":"If your site or server is struggling with high load and you notice many\u00a0<strong>wp-cron.php POST<\/strong> requests in the www logs, then the solution is simple: <strong>replace the virtual wp-cron with a real cron at your selected schedule.<\/strong>\r\n\r\nWordPress has a file called\u00a0<strong>wp-cron.php<\/strong>\u00a0that runs every time someone visits your site, which can severely throttle CPU usage and slow down busy sites, as this process only needs to run infrequently. You don\u2019t need to have it running in the background that often, using up valuable\u00a0hosting resources.\r\n\r\nRather than letting wp-cron slow down your site, it should be disabled and let your system handle scheduled processes in the background \u2014 using a cronjob.\r\n<h3>Disable wp-cron in WordPress<\/h3>\r\n<ol>\r\n \t<li>Use <a href=\"https:\/\/xneelo.co.za\/help-centre\/website\/upload-download-website\/\" target=\"_blank\" rel=\"noopener noreferrer\">FTP<\/a> to access your server and navigate to the\u00a0<strong>public_html<\/strong>\u00a0folder<\/li>\r\n \t<li>Add this line at the bottom of your\u00a0<strong>wp-config.php<\/strong> file, <span>just before the section that says <code>\/* That's all, stop editing! Happy blogging. *\/<\/code>:<\/span>\r\n<pre>define('DISABLE_WP_CRON', true);<\/pre>\r\n<\/li>\r\n<\/ol>\r\n<h3>Enable a real cronjob<\/h3>\r\nYou can now schedule these <em>wp-crons<\/em> to run once every couple of hours instead, using the\u00a0<a href=\"https:\/\/xneelo.co.za\/help-centre\/website\/cronjob-manager\/\" target=\"_blank\" rel=\"noopener noreferrer\">Cronjob Manager<\/a>\u00a0in konsoleH.\r\n<div>\r\n<ol>\r\n \t<li><strong>Browse<\/strong>\u00a0to\u00a0<strong><a href=\"http:\/\/secure.konsoleh.co.za\/\" target=\"_blank\" rel=\"noopener noreferrer\">konsoleH<\/a><\/strong>\u00a0and log in\u00a0at\u00a0<a href=\"https:\/\/xneelo.co.za\/help-centre\/accounts-and-payments\/konsoleh-access-levels\/\" target=\"_blank\" rel=\"noopener noreferrer\">Admin or Domain level<\/a><\/li>\r\n \t<li>If Admin level: Select or search for a\u00a0<b>domain name<\/b>\u00a0in the\u00a0<b>Hosting Services<\/b>\u00a0tab<\/li>\r\n \t<li>Select\u00a0<b>Manage Services<\/b>\u00a0from the left-hand menu<\/li>\r\n \t<li>Select\u00a0<b>Cronjob Manager<\/b><\/li>\r\n \t<li>Select\u00a0<b>Add<\/b><\/li>\r\n \t<li>Next to\u00a0<b>Name<\/b>\u00a0you may give your cronjob a name e.g. wp-cron<\/li>\r\n \t<li>Next to\u00a0<b>Job\u00a0<\/b>enter the following:\r\n<pre>\/usr\/bin\/php-wrapper \/usr\/www\/users\/ftpuser\/wp-cron.php<\/pre>\r\nwhere<em> ftpuser<\/em> is your FTP username.<\/li>\r\n \t<li>The\u00a0<b>Status<\/b>\u00a0option allows you to either have the cronjob\u00a0<b>Enabled<\/b>\u00a0or\u00a0<b>Disabled.<\/b><\/li>\r\n \t<li>Under\u00a0<b>When<\/b>\u00a0<b>to<\/b>\u00a0<b>execute<\/b>, set the\u00a0<b>time(s)<\/b>\u00a0when the cronjob needs to execute.<\/li>\r\n \t<li>Select\u00a0<b>Save<\/b>.<\/li>\r\n<\/ol>\r\n<\/div>\r\n<ul>\r\n \t<li ><\/li>\r\n<\/ul>"},"excerpt":{"rendered":"<p>If your site is struggling with high load and there are many wp-cron.php POST requests in the www logs, replace the virtual wp-cron with a real cron.<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"lsx_disable_title":"0","_relevanssi_hide_post":"","_relevanssi_hide_content":"","_relevanssi_pin_for_all":"","_relevanssi_pin_keywords":"","_relevanssi_unpin_keywords":"","_relevanssi_related_keywords":"","_relevanssi_related_include_ids":"","_relevanssi_related_exclude_ids":"","_relevanssi_related_no_append":"","_relevanssi_related_not_related":"","_relevanssi_related_posts":"","_relevanssi_noindex_reason":"","footnotes":""},"categories":[779,166],"tags":[23227,23224,23221,23218,23215],"topics":[10403],"class_list":["post-21854","post","type-post","status-publish","format-standard","hentry","category-wordpress","category-website","tag-enable-a-real-cronjob","tag-disable-wp-cron-in-wordpress","tag-fix-server-load","tag-wp-cron-php","tag-high-server-load","topics-konsoleh-tools"],"acf":[],"additional_meta":{"category_title":[{"term_id":779,"name":"WordPress","slug":"wordpress","term_group":0,"term_taxonomy_id":779,"taxonomy":"category","description":"","parent":166,"count":14,"filter":"raw","term_order":"48","cat_ID":779,"category_count":14,"category_description":"","cat_name":"WordPress","category_nicename":"wordpress","category_parent":166},{"term_id":166,"name":"Website","slug":"website","term_group":0,"term_taxonomy_id":166,"taxonomy":"category","description":"About your Website(s)","parent":0,"count":169,"filter":"raw","term_order":"120","cat_ID":166,"category_count":169,"category_description":"About your Website(s)","cat_name":"Website","category_nicename":"website","category_parent":0}],"tag_title":[{"term_id":23227,"name":"Enable a real cronjob","slug":"enable-a-real-cronjob","term_group":0,"term_taxonomy_id":23227,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw","term_order":"406"},{"term_id":23224,"name":"Disable wp-cron in WordPress","slug":"disable-wp-cron-in-wordpress","term_group":0,"term_taxonomy_id":23224,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw","term_order":"409"},{"term_id":23221,"name":"fix server load","slug":"fix-server-load","term_group":0,"term_taxonomy_id":23221,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw","term_order":"411"},{"term_id":23218,"name":"wp-cron.php","slug":"wp-cron-php","term_group":0,"term_taxonomy_id":23218,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw","term_order":"412"},{"term_id":23215,"name":"high server load","slug":"high-server-load","term_group":0,"term_taxonomy_id":23215,"taxonomy":"post_tag","description":"","parent":0,"count":1,"filter":"raw","term_order":"414"}]},"featured_image_src":null,"author_info":{"display_name":"marketing","author_link":"https:\/\/xneelo.co.za\/help-centre\/author\/marketing\/","author_avatar":"https:\/\/secure.gravatar.com\/avatar\/a6ea315e112423b2b955cb020fbce2b0835956c6ad85ff0f13f1db298977eaaa?s=96&d=mm&r=g"},"_links":{"self":[{"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/posts\/21854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/comments?post=21854"}],"version-history":[{"count":0,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/posts\/21854\/revisions"}],"wp:attachment":[{"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/media?parent=21854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/categories?post=21854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/tags?post=21854"},{"taxonomy":"topics","embeddable":true,"href":"https:\/\/xneelo.co.za\/help-centre\/wp-json\/wp\/v2\/topics?post=21854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}