WP-Cron Control

IN Marketing & Wordpress
What is WP-Cron?
Why I use WP-Cron Control

How I use WP-Cron Control

First, I disable wp-cron from running on every page load by modifying the wp-config.php file and adding this line near the top:

[snippet id=”240″]

Add a comment to your wp-config.php file

Then you install WP-Cron Control per normal (install/activate) which will give you a custom cronjob to add to your cronjobs in cPanel.

wp cron controls settings

Note: In the above screenshot, I have the 2nd option unchecked, but you will probably want to check that box. The above site is for my “problem site” so I have as much as I can “switched off” to save site resources in any way I can.

Then you need to setup a manual cron job (in your cPanel) that is set to schedule for times that are under your own control about how often it runs.

cronjobs

Minimum should be 15 minutes, but you can set it for hourly, twice a day, 24 hours, etc. It all depends on what “automatic” things you have scheduled on your particular install as to how often it should be run.

(But no shared host is happy with less than 15 minutes, so if you are doing this to keep your host happy, at least make it 15 minutes or more. If you run a site like buddypress, etc, then you need to make it much lower, than a more static site like a blog that you update every few days – because buddypress (and things like it) have people “talking” to each other, uploading photos and writing in forums, etc, and cron jobs are needed to run for each update – so to keep your members happy, you’ll want to make it as low as you possibly can, but to keep your host happy, you’ll want to make it as high as you possibly can)

 

add new cron

Just paste the command from WP-Cron Control directly into the command in your cron jobs, and click on — Common Settings — and choose a time from that – that’s the fastest, easiest way to setup a cron job.

And now you are done.

Check upcoming cron schedules from within wordpress

 

Penny (PennyButler.com)
Penny (PennyButler.com)

Who are we? What are we doing here? What is the meaning of life? Penny is a truth-seeker, ever-questioning, ever-learning, ever-researching, ever delving further and deeper down the rabbit hole. This site is a legacy of sorts, a place to collect thoughts, notes, book summaries, whilst providing a searchable archive to easily lookup and reference.

Leave a Reply

Your email address will not be published. Required fields are marked *