{"id":6658,"date":"2025-11-24T12:08:16","date_gmt":"2025-11-24T06:38:16","guid":{"rendered":"https:\/\/youstable.com\/kb\/?p=6658"},"modified":"2025-12-08T15:10:04","modified_gmt":"2025-12-08T09:40:04","slug":"how-to-disable-wp-cron-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.youstable.com\/blog\/how-to-disable-wp-cron-in-wordpress\/","title":{"rendered":"How to disable WP-Cron in WordPress &#8211; Make WordPress Faster"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">In this article, we will cover how to disable WP-Cron in WordPress to reduce server load and increase your website speed and performance.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WP-Cron.php is the WordPress task schedule, which simulates normal cron-jobs <strong>like checking for updates and publishing scheduled posts<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We call&nbsp;wp-cron.php&nbsp;because some jobs may take time to complete and the user requesting the WordPress page cannot be made to wait. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the situation given above, we can call the wp-cron.php function because it runs as a separate process in the background without delaying the page load time for the user.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Cron jobs can be set to be executed per minute, 5 min, or as per your requirement. But running too many cron jobs consumes high server resources resulting in <a href=\"https:\/\/www.youstable.com\/blog\/fix-slow-wordpress-site\/\">slow website<\/a> performance.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-is-wp-cron-affecting-the-performance-of-your-website\"><strong>How is WP-Cron affecting the performance of your website?<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It is very important for you to understand that WP-Cron.php is not a real cron job, it\u2019s simply what WordPress has created to mimic what a system cron does.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WP-Cron does not run continuously but &nbsp;<code>wp-cron.php<\/code>&nbsp;runs on every page load. If there is high traffic on your sites, wp-cron.php can cause problems as it will run on every page load.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The opposite scenario is also true that if your website doesn\u2019t have traffic,&nbsp;schedules cron jobs could be missed&nbsp;as no one has loaded a page and wp-cron.php executes at every page load.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So, to avoid this, a better approach will be to disable wp-cron in WordPress.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-to-disable-wp-cron-in-wordpress-from-wp-config-php\">How to disable WP-Cron in WordPress from wp-config.php<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1)<\/strong> Login into your control panel (<a href=\"http:\/\/youstable.com\/kb\/how-to-login-into-directadmin\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>DirectAdmin<\/strong><\/a> or <a href=\"https:\/\/youstable.com\/kb\/how-to-login-into-cpanel\/\" target=\"_blank\" rel=\"noopener\"><strong>cPanel<\/strong><\/a>) and navigate to File Manager and open wp-config.php.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Click here to learn <a href=\"https:\/\/youstable.com\/kb\/edit-wp-config-php\/\" target=\"_blank\" rel=\"noreferrer noopener\">how to edit wp-config.php in DirectAdmin<\/a> and <a href=\"https:\/\/youstable.com\/kb\/edit-wp-config-php\/\" target=\"_blank\" rel=\"noopener\">cPanel<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2) <\/strong>Add the following code into your wp-config.php file to disable WP-Cron:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">define('DISABLE_WP_CRON', true);<\/pre>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1630\" height=\"734\" src=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/06\/disable-wp-cron.png\" alt=\"How to disable WP-Cron in WordPress\" class=\"wp-image-6899\" srcset=\"https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/06\/disable-wp-cron.png 1630w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/06\/disable-wp-cron-768x346.png 768w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/06\/disable-wp-cron-1536x692.png 1536w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/06\/disable-wp-cron-810x365.png 810w, https:\/\/www.youstable.com\/blog\/wp-content\/uploads\/2022\/06\/disable-wp-cron-1140x513.png 1140w\" sizes=\"auto, (max-width: 1630px) 100vw, 1630px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">There is some problem as well with disabling the WP-Cron. Some features of WordPress will stop running like scheduled posts because it is directly dependent on the crown.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you face any issues after disabling the corn job, you can <a href=\"https:\/\/youstable.com\/manage\/submitticket.php?step=2&amp;deptid=2\" target=\"_blank\" rel=\"noopener\">contact YouStable support<\/a>, and our expert support team will resolve your issue in a go.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will cover how to disable WP-Cron in WordPress to reduce server load and increase your website [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":6839,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"iawp_total_views":76,"footnotes":""},"categories":[1,350,2258],"tags":[],"class_list":["post-6658","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-email","category-knowledgebase","category-kb-wordpress"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/6658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/comments?post=6658"}],"version-history":[{"count":0,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/posts\/6658\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media\/6839"}],"wp:attachment":[{"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/media?parent=6658"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/categories?post=6658"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.youstable.com\/blog\/wp-json\/wp\/v2\/tags?post=6658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}