Coder Social home page Coder Social logo

wp-cron's Introduction

wp-cron

Replaces WordPress cron system with the OS cron system

Dependencies

wp-cron.sh uses WP-CLI. WP-CLI must be setup and configured properly to use this script.

Installation

Download the file and apply execute permissions

 $ curl -O -L https://github.com/rdaunce/wp-cron/raw/master/wp-cron.sh
 $ chmod +x wp-cron.sh

Configure the WordPress installations for manual Cron processing by running the script in interactive mode.

$ wp-cron.sh -i

To allow for manual Cron proccessing, toggle DISABLE_WP_CRON to [true] for each WordPress installation that should be processed manually.

Once one or more WordPress installations are setup for manual Cron processing, schedule a job in your OS Cron system to run the script with the -r option. Set a schedule that is appropriate for your WordPress installations. Every 15 minutes should be fine, but there may be plugins that need it more often.

Usage

Usage: wp-cron.sh [options...]
Options:
 -r, --runall           Run all pending WordPress cron tasks on all WordPress installations 
                        that have the WordPress Cron system disabled
 -i, --interactive      Run in interactive mode with menu
 -h, --help             Display help contents
 
 The program will scan locate all WordPress installations recursively within the current directory.
 
 Interactive Mode displays an interactive menu to list all discovered WordPress installations, enable/disable
 the WordPress Cron system for all installations, or toggle the WordPress Cron system on an individual 
 installation.  It also provides an option to run all pending WordPress Cron jobs on all sites that have been 
 setup for manual proccessing. 

wp-cron's People

Contributors

rdaunce avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.