Download the PHP package beapi/missed-schedule without Composer

On this page you can find all versions of the php package beapi/missed-schedule. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package missed-schedule

Missed Schedule

Current version: 1.1.0

Publish future posts when their publication date has passed and WordPress failed to do it.

WordPress schedules one publish_future_post event per scheduled post. When WP-Cron does not run at the right time (low traffic, a cron lock left behind, a failed loopback request), the post stays in the future status with a "Missed schedule" notice in the admin. This plugin looks for those posts and publishes them.

Requirements

Installation

The plugin is a single PHP file meant to run as a must-use plugin. Installed through Composer it lands in its own folder, so a MU loader such as BeAPI/wp-mu-loader or Bedrock's autoloader is needed to load it.

Composer

Manual

How it works

Two mechanisms run the same check, which publishes at most 10 posts per run, oldest first:

  1. A WP-Cron event, beapi_missed_scheduled_event, every 5 minutes. Always registered. This is the recommended path, with WP-Cron disabled (DISABLE_WP_CRON) and a system cron running wp cron event run --due-now.
  2. A synchronous check on page load (wp_loaded), throttled to one check per minute through a transient. Enabled by default only when DISABLE_WP_CRON is not true, since a site that relies on page loads to spawn WP-Cron needs the fallback. Skipped during cron requests.

The check reuses the core check_and_publish_future_post() callback, so status and date comparisons are the same as a normal scheduled publication. It filters on post type so the query uses the type_status_date index of the posts table.

Constants

Force or disable the synchronous check regardless of DISABLE_WP_CRON:

Filters

Filter Default Purpose
beapi_missed_schedule_limit 10 Maximum number of posts published by one check.
beapi_missed_schedule_interval 300 Seconds between two WP-Cron checks. Changing it takes effect after the current event is cleared (see below).
beapi_missed_schedule_sync_throttle 60 Minimum seconds between two synchronous checks. 0 checks on every request.

Removing the plugin

Must-use plugins have no deactivation hook, so the WP-Cron event stays registered after the file is removed. Clear it by hand:

The same command, followed by a page load, re-registers the event with a new interval after changing beapi_missed_schedule_interval.

Changelog

See CHANGELOG.md.

Who ?

Created by Be API, the French WordPress leader agency since 2009. Based in Paris, we are more than 30 people and always hiring some fun and talented guys. So we will be pleased to work with you.

This plugin is only maintained, which means we do not guarantee some free support. Consider reporting an issue and be patient.

If you really like what we do or want to thank us for our quick work, feel free to donate as much as you want / can, even 1€ is a great gift for buying coffee :)

License

This plugin is licensed under the GPLv2 or later.


All versions of missed-schedule with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
composer/installers Version ^1.0 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package beapi/missed-schedule contains the following files

Loading the files please wait ...