BLACK FRIDAY! 50% OFF!
F S P O S T E R

How to configure a Cron Job on WordPress

 

What is a Cron Job?

A Cron job is a task that is scheduled to run at a specific time automatically. For example, a Cron job can back up a file every six hours automatically.
FS Poster is using the standard WordPress Cron Jobs for background shares and Scheduled posts. The default WordPress Cron Jobs might cause delays in your Schedules or background shares. Because, by default, WordPress does not use a real Cron job. Instead, whenever a page is loaded on a WordPress site by any user, WordPress runs the Cron Job Tasks. If nobody visits your WordPress site, your tasks will not run. As a result, your scheduled tasks will delay.

To resolve these issues, you should disable the default virtual WordPress Cron Job, and configure a real Cron job. To do this, follow the instruction below:

1. Add the following line to the wp-config.php file;
define('DISABLE_WP_CRON', true);
2. Log in to Cpanel;
3. Go to the Cron Jobs;
4. Configure a real Cron Job on WordPress;
5. Go to FS Poster > General settings > Cron Job section. Copy the command and add it to the command section. If you want the schedules to share the posts at the exact time you defined on the schedule module, you need to set the Cron Job every minute. For example, if you set it 10 minutes, that means it can delay up to 10 minutes:

How to set up a Cron Job on WordPress | FS Poster WP Plugin


How to set up a Cron Job on WordPress | FS Poster WP Plugin

After setting up the Cron Jobs, you can see the result by going to FS Poster > General settings > Cron Job section. You can see how many minute(s) ago the last Cron Job ran.