{"id":2715,"date":"2013-05-24T01:48:16","date_gmt":"2013-05-24T05:48:16","guid":{"rendered":"http:\/\/www.kayak2u.com\/blog\/?p=2715"},"modified":"2013-05-24T01:48:16","modified_gmt":"2013-05-24T05:48:16","slug":"i-read-it-on-the-internets","status":"publish","type":"post","link":"http:\/\/www.kayak2u.com\/?p=2715","title":{"rendered":"I read it on the Internets"},"content":{"rendered":"<p><span class=\"mceItemHidden\">I&#39;m working on a simple little coding project wherein I need to run a <span class=\"hiddenSpellError\" pre=\"a \">php<\/span> script four times a day, which means a <span class=\"hiddenSpellError\" pre=\"a \">cron<\/span> job, which I&#39;ve never tried before. &nbsp;I&#39;ve also been interested (for the heck of it) in cutting down the excessive WordPress <span class=\"hiddenSpellError\" pre=\"WordPress \">cron<\/span> actions. &nbsp;My websites don&#39;t need to check if their themes <span class=\"hiddenGrammarError\" pre=\"themes \">have been changed<\/span> twice a day, or even once a week (though changing that behavior with the following is something else.) &nbsp;And WordPress calls the <span class=\"hiddenSpellError\" pre=\"WordPress \">cron<\/span> action on every page access, which is somewhat silly, but that&#39;s how WordPress has to work, apparently.<\/span><\/p>\n<p><span class=\"mceItemHidden\">So, it&#39;s simple to edit one&#39;s wp-config.<span class=\"hiddenSpellError\" pre=\"\">php<\/span> file with &quot;define (&#39;DISABLE_WP_CRON&#39;, true)&quot;, which, not surprisingly, <span class=\"hiddenSpellError\" pre=\"\">unhooks<\/span> the default WordPress cron behavior.<\/span><\/p>\n<p><span class=\"mceItemHidden\">Then, to re-ignite a more periodically robust schedule, one is to <span class=\"hiddenSuggestion\" pre=\"to \">utilize<\/span> one&#39;s <span class=\"hiddenSpellError\" pre=\"one's \">cPanel<\/span> <span class=\"hiddenSpellError\" pre=\"cPanel \">Cron<\/span> form to <span class=\"hiddenSpellError\" pre=\"to \">rehook<\/span> the wp-cron.php file.<\/span><\/p>\n<p>However, according to my robust searches, the recommended command strings are&#8230; legion:<\/p>\n<p><span class=\"mceItemHidden\"><span class=\"hiddenSpellError\" pre=\"\">wget<\/span> http:\/\/www.XXX.com\/wp-cron.php<\/span><br \/>\n\t<span class=\"mceItemHidden\">wget &ndash;q http:\/\/www.XXX.com\/wp-cron.php <span class=\"hiddenSpellError\" pre=\"\">-O<\/span> \/dev\/null<\/span><br \/>\n\t<span class=\"mceItemHidden\">wget <span class=\"hiddenSpellError\" pre=\"wget \">-q<\/span> <span class=\"hiddenSpellError\" pre=\"-q \">-O<\/span> &#8211; http:\/\/www.XXX.com\/wp-cron.php &gt;\/dev\/null 2&gt;&amp;1&nbsp;<\/span><br \/>\n\twget -q -O &#8211; http:\/\/www.XXX.com\/wp-cron.php?doing_wp_cron &gt;\/dev\/null 2&gt;&amp;1<br \/>\n\t<span class=\"mceItemHidden\">wget <span class=\"hiddenSpellError\" pre=\"wget \">-O<\/span> \/dev\/null http:\/\/www.XXX.com\/wp-cron.php<\/span><br \/>\n\t<span class=\"mceItemHidden\">php <span class=\"hiddenSpellError\" pre=\"php \">-q<\/span> \/home\/cPanel_User\/public_html\/wp-cron.php<\/span><\/p>\n<p>Sweet. &nbsp;(Or copacetic, perhaps, a word I vowed at one time never to utter, except, perhaps, sarcastically.)<\/p>\n<p><span class=\"mceItemHidden\">It turns out that I need to do something different, anyway, but now that I can&#39;t <span class=\"hiddenSpellError\" pre=\"can't \">unsee<\/span> it, the ol&#39; brain will have to chew the permutations for a while.<\/span><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#39;m working on a simple little coding project wherein I need to run a php script four times a day, which means a cron job, which I&#39;ve never tried before. &nbsp;I&#39;ve also been interested (for the heck of it) in cutting down the excessive WordPress cron actions. &nbsp;My websites don&#39;t need to check if their [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-2715","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/posts\/2715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2715"}],"version-history":[{"count":0,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=\/wp\/v2\/posts\/2715\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2715"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.kayak2u.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}