Parallel processing is one of the ways to get things done at a faster pace. WP Ultimate CSV Importer 5.0 has been recently released with faster import performance. The featured images from external URL are uploaded parallelly with the help of Cron in the background to make the import faster. In this article, you will know how to enable & Configure WP-Cron.
By default the WP Cron is enabled because there are WordPress features that rely on to execute scheduled jobs. If in case the cron is disabled, you can also enable WP-Cron by editing wp-config.php file in your WordPress root folder and add the following line in the file.
Hooking WP Cron in task scheduler
WP Cron doesn’t run continuously and to run the tasks in the time of import, you can set up the system task scheduler to run on the intervals. If you also have a high traffic website you can trigger the WP-Cron only at the time of your CSV import.
In Windows, you can schedule the tasks in Task Scheduler. All Programs → Accessories → System Tools → Task Scheduler.
You can trigger the Cron to execute in number of different ways, one of the method is to use PowerShell via cmd.exe.
Both Mac OS and Linux use Cron as time based scheduling system. You can simply execute via terminal.
Users-MacBook-Pro:~ user$crontab -e
If you want to run regardless of the time sections, you can mention with Asterisk(*)
* * * * * wget http://Your_Site_URL/wp-cron.php
If you need to run your import every 2 hours regardless of the day or month, you need to specify like
* 2 * * * wget http://Your_Site_URL/wp-cron.php
Now you are completely done with your Cron setup and the featured image gets populated parallelly with your content import. The Cron entry setup differs for each hosting provider.
Transform your WordPress website with ease! Our premium plugin bundle packs are the ultimate solution to take your website to the next level. Get access to a comprehensive suite of powerful plugins designed to optimize your website’s functionality, save time, and enhance your experience. Don’t waste time searching for individual plugins – check out our bundle packs today and experience the difference.
Need any help? Contact us at [email protected].