Powered By WPOptinForm

If you are running one or more Word press sites, I’d like to bring to your attention an easy way to reduce the amount of resources that Word press consumes.

By default, automatic task handling in is controlled by wp-cron.php. This script is used by to run scheduled tasks for your site.

Unfortunately, this file is set to be called on every page view, even when it isn’t needed, which in turn can cause higher than needed use of resources on the server.

defaults to this behavior because some hosts do not allow manual cron jobs to be created and the tasks have to be carried out by this script instead. Since can be installed on so many different hosts, the developers are trying to make sure it will run as expected whatever the environment.

Once a blog begins to add users and traffic increases, this can cause issues for your account because the script is called for every single page view.

Fortunately, it’s fairly easy to disable this default behavior and set up a proper cron job through cPanel for task management. This will be a much more efficient way to run the tasks needed for , and can even optimize your site.

To stop wp-cron.php from executing on each page view, simply add the following code to your wp-config.php file:
define(‘DISABLE_WP_CRON’, true);

Then you can create a cronjob via the cpanel interface to execute wp-cron.php on a regular schedule. You can find a video guide on this process under your cPanel Tutorials
The cronjob will look something like this:

/usr/bin/php -q /home/accountname/public_html/wp-cron.php

Remember to specify the full path to this file. If you’ve installed WordPress in a ‘wp’ subdirectory, then the command would look like this, where accountname would be the name of your cpanel account:

/usr/bin/php -q /home/accountname/public_html/wp/wp-cron.php

Filed under: SEO