GithubHelp home page GithubHelp logo

isabella232 / wp-cron-control Goto Github PK

View Code? Open in Web Editor NEW

This project forked from automattic/wp-cron-control

0.0 0.0 0.0 114 KB

This plugin allows you to take control over the execution of cron jobs.

PHP 100.00%

wp-cron-control's Introduction

=== WP-Cron Control ===
Contributors: tott, ethitter, automattic, batmoo
Tags: wp-cron, cron, cron jobs, post missed schedule, scheduled posts
Requires at least: 3.4
Tested up to: 4.6
Stable tag: 0.7.1

This plugin allows you to take control over the execution of cron jobs.

== Description ==

This plugin allows you to take control over the execution of cron jobs. It's mainly useful for sites that either don't get enough comments to ensure a frequent execution of wp-cron or for sites where the execution of cron via regular methods can cause race conditions resulting in multiple execution of wp-cron at the same time. It can also help when you run into posts that missed their schedule.

This plugin implements a secret parameter and ensures that cron jobs are only executed when this parameter is existing.

== Installation ==

* Install either via the WordPress.org plugin directory, or by uploading the files to your server.
* Activate the Plugin and ensure that you enable the feature in the plugins' settings screen
* Follow the instructions on the plugins' settings screen in order to set up a cron job that either calls `php wp-cron-control.php http://blog.address secret_string` or `wget -q "http://blog.address/wp-cron.php?doing_wp_cron&secret_string"`
* If you like to have a global secret string you can define it in your wp-config.php by adding `define( 'WP_CRON_CONTROL_SECRET', my_secret_string' );`

== Limitations ==

This plugin performs a `remove_action( 'sanitize_comment_cookies', 'wp_cron' );` call in order to disable the spawning of new cron processes via the regular WordPress method. If `wp_cron` is hooked in an other action or called directly this might cause trouble.

== Screenshots ==

1. Settings screen to enable/disable various features.

== ChangeLog ==

= Version 0.7.1 =

* Security hardening (better escaping, sanitization of saved values)
* Update plugin to use core's updated cron hook

= Version 0.7 =

* Remove unneeded use of `$wpdb->prepare()` that triggered PHP warnings because a second argument wasn't provided.
* Update interface text to be translatable.

= Version 0.6 =

* Make sure that validated wp-cron-control requests also are valid in wp-cron.php by setting the global $doing_wp_cron value

= Version 0.5 =

* Adjustments for improved cron locking introduced in WordPress 3.3 http://core.trac.wordpress.org/changeset/18659

= Version 0.4 =

* Implementing feedback from Yoast http://yoast.com/wp-plugin-review/wp-cron-control/, fixing button classes, more inline comments

= Version 0.3 =

* Added option to enable extra check that would search for missing jobs for scheduled posts and add them if necessary.

= Version 0.2 =

* Added capability check in settings page

= Version 0.1 =

* Initial version of this plugin.

wp-cron-control's People

Contributors

ethitter avatar joshbetz avatar simonwheatley 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.