• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Cron Jobs for WP All Import

webarius

New Pleskian
Server operating system version
Ubuntu 20.04.5 LTS
Plesk version and microupdate number
Plesk Obsidian v18.0.48_build1800221104.03 os_Ubuntu 20.04
Hi there! I am trying to run two cron jobs one as a trigger and one as execution according to the following article.
I have managed to run it with whm but with plesk I cannot!
I have tried to run it as a command and also as php script but it fails every single time.
the two cron jobs are
and

I've seen the other posts cocerning cron jobs but couldn't make anything out of them.
Can anyone help me?
 
The cronjob "command" as you display it is merely opening a specific URL. In that case won't the "Request URL" option in setting up your task not do the job?

1670853725705.png

What is the error you are getting when fetching the URL?
 
Hi there, Based on the updated documentation of WPAllImport there should be a random number at the end of the URL.

For example the following command is given:
curl "http://your-website.com/wp-load.php...port_id=[YOUR_IMPORT_ID]&action=trigger&rand="$RANDOM
The documentation mentions:
"As seen in those examples, we use a $RANDOM parameter as a cache-busting technique. This is particularly handy in servers where heavy caching doesn't allow the cron jobs to function correctly."
In our case simple fetch url functionality does not work as expected, since the responses are cached and the exports so not finish successfully.


How can we set up a cron job that uses $RANDOM variable? We have contacted our hosting provider and they said that this is not possible.
 
Back
Top