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

    121
    14
    18
    Apr 3, 2017
    Ratings:
    +17
    Local Time:
    7:29 PM
    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

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:29 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    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

    121
    14
    18
    Apr 3, 2017
    Ratings:
    +17
    Local Time:
    7:29 PM
    Yes, tried and confirmed working on a few sites.
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,895
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:29 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    nice will do more tests and see