1815 - Missed Schedule Fixer
Fixes "missed schedule" problems with posts
by 1815 · github.com/achttienvijftien/missed-schedule-fixer · website
★ 1stars
121kcomposer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/achttienvijftien/missed-schedule-fixer/archive/refs/heads/main.zipAlso on Packagist as achttienvijftien/missed-schedule-fixer:
composer require achttienvijftien/missed-schedule-fixerFrom the readme
Missed Schedule Fixer
Ever had problems with scheduled posts not being published? This plugin fixes that problem.
Configuration
Every minute the plugin looks for scheduled posts that lost their publish event. To keep that query fast,
only posts scheduled within a window around the current time are considered: by default from one day into
the past up to one hour into the future. Posts that were scheduled long before that window are considered
stale and are left alone.
Use the achttienvijftienmissedschedulefixerqueryargs filter to change the query. For example, to
look a week into the past instead of a day:
Keep the query bounded by postdate. Removing the date query brings back the slow, unbounded behaviour
this window is meant to avoid.
Prerequisites
Basic installation
- PHP = 8.1
- Composer
Testing
- Docker
- nvm
- Yarn
Testing
Setup
1. Install Composer packages: composer install
2. Install the correct Node.js version: nvm install
3. Install NPM packages: yarn
4. Start wp-env yarn wp-env start
5. Check if test suite is ready: yarn test
6. When test result is OK you're ready to start writing tests in test/php