Download the PHP package soderlind/dss-cron without Composer
On this page you can find all versions of the php package soderlind/dss-cron. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download soderlind/dss-cron
More information about soderlind/dss-cron
Files in soderlind/dss-cron
Package dss-cron
Short Description Run wp-cron on all public sites in a multisite network
License GPL-2.0-or-later
Homepage https://github.com/soderlind/dss-cron
Informations about the package dss-cron
DSS Cron
Run wp-cron on all public sites in a multisite network
"You could have done this with a simple cron job. Why use this plugin?" I have a cluster of WordPress sites. I did run a shell script calling wp cli, but the race condition was a problem. I needed a way to run wp-cron on all sites without overlapping. This plugin was created to solve that problem.
🚀 Quick Start
- Upload
dss-cron
to/wp-content/plugins/
- Network activate via 'Network->Plugins'
- Disable WordPress default cron in
wp-config.php
:
Also available via Composer:
🔧 Configuration
The plugin creates an endpoint at /dss-cron that triggers cron jobs across your network.
Usage: https://example.com/dss-cron
Adding ?ga to the URL (e.g., https://example.com/dss-cron?ga
) will output results in GitHub Actions compatible format:
- Success:
::notice::Running wp-cron on X sites
-
Error:
::error::Error message
Example GitHub Action success notice:
Trigger Options
-
System Crontab (every 5 minutes):
- GitHub Actions (every 5 minutes):
Customization
Adjust maximum sites processed per request (default: 200):
Adjust transient expiration time (default: 1 hour):
Copyright and License
DSS Cron is copyright 2024 Per Soderlind
DSS Cron is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
DSS Cron is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the Extension. If not, see http://www.gnu.org/licenses/.