Welcome to Centmin Mod Community
Register Now

Wordpress Proposed new Wordpress crontab format

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

  1. joshuah

    joshuah Member

    115
    14
    18
    Apr 3, 2017
    Ratings:
    +16
    Local Time:
    9:38 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

    29,031
    6,588
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,780
    Local Time:
    9:38 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

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

    eva2000 Administrator Staff Member

    29,031
    6,588
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,780
    Local Time:
    9:38 AM
    Nginx 1.13.x
    MariaDB 5.5
    nice will do more tests and see