{"id":30698,"date":"2014-07-07T15:07:25","date_gmt":"2014-07-07T20:07:25","guid":{"rendered":"http:\/\/webirix.com\/?p=30698"},"modified":"2014-07-07T15:38:54","modified_gmt":"2014-07-07T20:38:54","slug":"desactivar-el-fichero-wp-cron-php-para-evitar-consumo-excesivo-del-servidor","status":"publish","type":"post","link":"https:\/\/webirix.com\/en\/desactivar-el-fichero-wp-cron-php-para-evitar-consumo-excesivo-del-servidor\/","title":{"rendered":"Disable the wp-cron.php file to avoid excessive server consumption"},"content":{"rendered":"<h3 style=\"color: #444444;\"><strong>What does the wp-cron.php file work for?<\/strong><\/h3>\n<p style=\"color: #444444;\">The file\u00a0<strong>wp-cron.php<\/strong>\u00a0meets the following characteristics:<\/p>\n<ul style=\"color: #444444;\">\n<li>Verification of updates of templates and installed plugins.<\/li>\n<li>Backup processes.<\/li>\n<li>Publish articles on specific dates.<\/li>\n<\/ul>\n<h3 style=\"color: #444444;\"><strong>How do I disable the wp-cron.php file?<\/strong><\/h3>\n<p style=\"color: #444444;\">The file is located in the root or root of our website, however the file to modify is the\u00a0<strong>wp-config<\/strong>.<\/p>\n<p style=\"color: #444444;\">We will add the following line in the code of the file\u00a0<strong>wp-config<\/strong>:<\/p>\n<pre style=\"color: #444444;\">define (&#039;DISABLE_WP_CRON&#039;, true);\r\n<\/pre>\n<p style=\"color: #444444;\">It should look similar to the attached:<\/p>\n<pre style=\"color: #444444;\">\/\/ ** MySQL settings. Request this information from your web hosting provider. ** \/\/ \/ ** The name of your WordPress database * \/ define (&#039;DB_NAME&#039;, &#039;database_name&#039;); \/ ** Your MySQL username * \/ define (&#039;DB_USER&#039;, &#039;username&#039;); \/ ** Your MySQL password * \/ define (&#039;DB_PASSWORD&#039;, &#039;password&#039;); \/ ** MySQL host (you probably don&#039;t need to change it) * \/ define (&#039;DB_HOST&#039;, &#039;localhost&#039;); \/ ** Character encoding for the database. * \/ define (&#039;DB_CHARSET&#039;, &#039;utf8&#039;); \/ ** Database collation. Do not modify it if you have doubts. * \/ define (&#039;DB_COLLATE&#039;, &#039;&#039;); \/ ** Deactivate wp-cron.php file * \/ define (&#039;DISABLE_WP_CRON&#039;, true);\r\n<\/pre>\n<p style=\"color: #444444;\">Finally we must save the changes.<\/p>\n<h3 style=\"color: #444444;\"><strong>Activate Cron in cPanel<\/strong><\/h3>\n<p style=\"color: #444444;\">Deactivate the file\u00a0<strong>wp-cron.php<\/strong>\u00a0It is not the solution either, we will have to run it for a prudent period of time, for this we will have to perform the following steps:<\/p>\n<p style=\"color: #444444;\">1.- We go to\u00a0<em style=\"color: #dd0055;\"><strong>cPanel =&gt; Advanced =&gt; Cron Jobs<\/strong><\/em><\/p>\n<p><center style=\"color: #444444;\"><a class=\"modal\" style=\"color: #cc0000;\" href=\"http:\/\/www.webempresa.com\/images\/stories\/articulos\/desactivarcron\/cron_desactivarcron.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webempresa.com\/images\/stories\/articulos\/desactivarcron\/cron_desactivarcron.jpg\" alt=\"\" \/><\/a><\/center><\/p>\n<p style=\"color: #444444;\">2.- In the manual configuration we will select:\u00a0<em style=\"color: #dd0055;\"><strong>Every 5 minutes (* \/ 5)<\/strong><\/em>.<\/p>\n<p style=\"color: #444444;\">3.- Then in the parameter\u00a0<em style=\"color: #dd0055;\"><strong>Minute<\/strong><\/em>\u00a0we will change it for\u00a0<em style=\"color: #dd0055;\"><strong>*\/15<\/strong><\/em>, the result should be the following:<\/p>\n<p><center style=\"color: #444444;\"><a class=\"modal\" style=\"color: #cc0000;\" href=\"http:\/\/www.webempresa.com\/images\/stories\/articulos\/desactivarcron\/hora_desactivarcron.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webempresa.com\/images\/stories\/articulos\/desactivarcron\/hora_desactivarcron.jpg\" alt=\"\" \/><\/a><\/center><\/p>\n<p style=\"color: #444444;\">4.- Finally we will have to enter the command:<\/p>\n<pre style=\"color: #444444;\">php -q \/home\/username\/public_html\/wp-cron.php\r\n<\/pre>\n<p style=\"color: #444444;\">Where he\u00a0<em style=\"color: #dd0055;\"><strong>username<\/strong><\/em>\u00a0It is the name of the account that our Hosting assigned us in the following capture it is indicated where to obtain it.<\/p>\n<p><center style=\"color: #444444;\"><a class=\"modal\" style=\"color: #cc0000;\" href=\"http:\/\/www.webempresa.com\/images\/stories\/articulos\/desactivarcron\/nombreusuario_desactivarcron.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webempresa.com\/images\/stories\/articulos\/desactivarcron\/nombreusuario_desactivarcron.jpg\" alt=\"\" \/><\/a><\/center><\/p>\n<p style=\"color: #444444;\">In the end we will have to press on\u00a0<em style=\"color: #dd0055;\"><strong>Add new Cron task<\/strong><\/em>\u00a0for the task to be recorded.<\/p>\n<p><center style=\"color: #444444;\"><a class=\"modal\" style=\"color: #cc0000;\" href=\"http:\/\/www.webempresa.com\/images\/stories\/articulos\/desactivarcron\/tarea1_desactivarcron.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webempresa.com\/images\/stories\/articulos\/desactivarcron\/tarea1_desactivarcron.jpg\" alt=\"\" \/><\/a><\/center>&nbsp;<\/p>\n<p><center style=\"color: #444444;\"><a class=\"modal\" style=\"color: #cc0000;\" href=\"http:\/\/www.webempresa.com\/images\/stories\/articulos\/desactivarcron\/tarea2_desactivarcron.jpg\"><img decoding=\"async\" src=\"http:\/\/www.webempresa.com\/images\/stories\/articulos\/desactivarcron\/tarea2_desactivarcron.jpg\" alt=\"\" \/><\/a><\/center><\/p>","protected":false},"excerpt":{"rendered":"<p>What does the wp-cron.php file work for? The wp-cron.php file meets the following characteristics: Checking for updates of templates and installed plugins. Backup processes. Publish articles on specific dates. How do I disable the wp-cron.php file? The file is located in the root of our website, however the file to modify is ...<\/p>","protected":false},"author":2,"featured_media":30699,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2011,2013,2023],"tags":[],"class_list":["post-30698","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-actualidad","category-disenoweb","category-wordpress"],"jetpack_featured_media_url":"https:\/\/webirix.com\/wp-content\/uploads\/2014\/07\/1362414119_Document-scheduled-tasks-icon-160x160.png","_links":{"self":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/30698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/comments?post=30698"}],"version-history":[{"count":2,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/30698\/revisions"}],"predecessor-version":[{"id":30703,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/posts\/30698\/revisions\/30703"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/media\/30699"}],"wp:attachment":[{"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/media?parent=30698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/categories?post=30698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webirix.com\/en\/wp-json\/wp\/v2\/tags?post=30698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}