• I’m only using Post Notifications for new posts and not email templates.
    So I have setup the cron to use cPanelunder Options > Cron details and that works fine.

    Problem is 2 of the plugin’s crons are still enabled and only only 1 has been disabled as screencaptured here.

    The result is that admin alerts are sent out bycPanel’s cron, while the new post Nnotification is sent 30 minutes later by the plugin’s cron.

    Post Notification template offers 2 choices for the cron:
    – send mail within 30 minutes when a new post is published
    – add to cron when new post is published and send via cron

    I have chosen the second one but don’t well understand the difference between them…The second option should send via cPanel but still send 30 minutes later via the plugin’s cron!

    Is there a way to fully disable all 3 crons of the plugin and have everything sent by cPanel?

    @bretmiller – which cron are you using?

    • This topic was modified 4 years, 6 months ago by John.
Viewing 2 replies - 1 through 2 (of 2 total)
  • I have just allowed the plugin to use its own cron tasks. That said, I use crontab to run wp-cron every minute so anything depending on wp-cron should fire on time. There are 2 ways to do that. I have wp-cli installed so currently I do this from the site’s home directory:

    wp cron event list > ~/_Cron/$logname.log
    wp cron event run --due-now >> ~/_Cron/$logname.log

    Prior to wp-cli, I used wget to do it like this from the _Cron directory:
    wget --no-cache --save-headers --user-agent=wp-cron-script-1.1 --output-file=$logname.log --output-document=$logname.html https://$site/wp-cron.php

    Thread Starter John

    (@dsl225)

    Thanks Bret, I also switched to the plugin’s cron now.
    I’ll see if that works in a more logical way.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Anyone using cPanel cron successfully?’ is closed to new replies.