Date: Thu, 28 Mar 2024 22:37:18 +0100 (CET) Message-ID: <398169564.37.1711661838845@confluence-8.glowhost.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_36_1705968248.1711661838844" ------=_Part_36_1705968248.1711661838844 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
What is the purpose of the wp-cron.php file? It is responsible f= or different scheduled tasks, like checking updates, sending notifications,= posting scheduled tasks, etc. The problem is that it is run when someone v= isits the website, which often causes extra resource usage. This is especia= lly important for popular websites, where this process can slow down the we= bsite. A solution, as recommended by the WordPress developers, is to disabl= e WP_CRON and create a cPanel cronjob making a web request to the file in t= he schedule suitable for you.
define(=
code>'DISABLE_WP_CRON'
, true);
0 0 * * * php /home/$USER/public_html/wp-cron= .php >/dev/null 2>&1This will run wp-cron.php at midnight.<= br>
Please, note that $USER in this example should be replaced by the actual= user name of your account (your cPanel login). Also, the actual path to wp= -cron.php can be different, since your WordPress website may be installed i= nto a subfolder. If you face any difficulties, please contact support.
Information about cPanel Cron Jobs can be found at https://documentation.cpanel.net/display/ALD/Cron+Jobs