Changeset 3421445
- Timestamp:
- 12/16/2025 11:19:58 PM (3 months ago)
- Location:
- weather-write/trunk
- Files:
-
- 3 edited
-
includes/class-scheduler.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
weather-write.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
weather-write/trunk/includes/class-scheduler.php
r3418432 r3421445 139 139 $options = get_option( 'wwrt_settings', [] ); 140 140 $enabled = ! empty( $options['auto_enabled'] ); 141 141 $has_external = defined( 'WWRT_CRONJOB_API_TOKEN' ) && (string) WWRT_CRONJOB_API_TOKEN !== ''; 142 143 // If auto-posting is disabled, never schedule anything. 142 144 if ( ! $enabled ) { 145 return; 146 } 147 // When an external cron token is configured, treat external cron as the sole scheduler. 148 // In that mode, cron-job.org (or another external caller) hits the REST endpoint, 149 // which directly invokes WWRT_Scheduler::run_generation() at the desired times. 150 // To avoid double triggers (internal WP-Cron + external cron), do not schedule 151 // local wp-cron events when an external token is present. 152 if ( $has_external ) { 143 153 return; 144 154 } -
weather-write/trunk/readme.txt
r3418432 r3421445 4 4 Requires at least: 6.5 5 5 Tested up to: 6.8 6 Stable tag: 1.3. 26 Stable tag: 1.3.3 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 87 87 88 88 == Changelog == 89 90 = 1.3.3 = 91 - SCHEDULER: When an external cron token (WWRT_CRONJOB_API_TOKEN) is configured, external cron is now treated as the sole scheduler 92 - RELIABILITY: Internal WP-Cron events are no longer scheduled in external-cron mode, preventing double triggers per time slot 93 - SAFETY NET: Combined with 1.3.2 dedupe, this eliminates structural duplicate runs and extra API usage on sites using cron-job.org 89 94 90 95 = 1.3.2 = -
weather-write/trunk/weather-write.php
r3418432 r3421445 3 3 * Plugin Name: Weather Write 4 4 * Description: Generate and publish weather-aware posts with summaries, charts, images, alerts, SEO, and more — fully automated or on-demand. 5 * Version: 1.3. 25 * Version: 1.3.3 6 6 * Author: Mike Freeman - WeatherWrite 7 7 * Plugin URI: https://www.weatherwrite.com/
Note: See TracChangeset
for help on using the changeset viewer.