• Resolved szmigieldesign

    (@szmigieldesign)


    Hello,

    right now there is only a predefined set of recurrence timings to choose when adding custom cron events. It would be very useful to have a field with crontab format that would allow setting up advanced recurrence for event execution, like every 2nd minute between 3 and 4 PM.

    Crontab can be easily generated using services like – https://crontab.guru

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    Thanks for the message. This isn’t really something that the underlying cron system in WordPress supports, mostly because it operates on intervals, but secondly because it’s not a *real* cron system and relies on visitors to the site to triggers cron events.

    If you need strictly time-dependent cron events such as this, unfortunately you’re still better off using actual cron on your server.

    Thread Starter szmigieldesign

    (@szmigieldesign)

    Thanks John,

    I’ll stick with PHP script being run with your plugin every five minutes and look for some other solution that will allow me to run the script only between certain hours.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Set cron job recurrence according to crontab’ is closed to new replies.