Learn about Centmin Mod LEMP Stack today
Become a Member

Wordpress Proposed new Wordpress crontab format

Discussion in 'Blogs & CMS usage' started by joshuah, Jun 2, 2017.

  1. joshuah

    joshuah Member

    116
    14
    18
    Apr 3, 2017
    Ratings:
    +16
    Local Time:
    4:13 AM
    Hi,

    Is it possible to have the new cron entry for WP be set to the following?

    That way it'll free up the web server to actually serve files, etc.

    Also, it'll spawn into a subshell so it wont cause delays in cron.

    Code:
    */15 * * * * (sleep xxx; php -q /home/nginx/domains/public/domain.tld/wp-cron.php?doing_wp_cron) &
    instead of:

    Code:
    */15 * * * * sleep 250s ; wget -O - -q -t 1 http://domain.tld/wp-cron.php?doing_wp_cron > /dev/null 2>&1
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,191
    6,788
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,142
    Local Time:
    3:13 AM
    Nginx 1.13.x
    MariaDB 5.5
    have you tried that and confirmed it worked yourself ? in past had a few folks report issues doing it via local php command line call versus wget
     
  3. joshuah

    joshuah Member

    116
    14
    18
    Apr 3, 2017
    Ratings:
    +16
    Local Time:
    4:13 AM
    Yes, tried and confirmed working on a few sites.
     
    • Like Like x 1
  4. eva2000

    eva2000 Administrator Staff Member

    30,191
    6,788
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,142
    Local Time:
    3:13 AM
    Nginx 1.13.x
    MariaDB 5.5
    nice will do more tests and see