Changeset 3496586
- Timestamp:
- 04/01/2026 01:00:24 PM (15 hours ago)
- Location:
- sdaweb-social-galleri-feed/trunk
- Files:
-
- 5 edited
-
blocks/gallery/block.json (modified) (1 diff)
-
includes/class-admin-settings.php (modified) (1 diff)
-
includes/class-api-handler.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
sdaweb-social-galleri-feed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sdaweb-social-galleri-feed/trunk/blocks/gallery/block.json
r3496563 r3496586 3 3 "apiVersion": 3, 4 4 "name": "sdawsoga/gallery", 5 "version": "4.1 0.5",5 "version": "4.11.0", 6 6 "title": "Social Galleri Feed", 7 7 "category": "embed", -
sdaweb-social-galleri-feed/trunk/includes/class-admin-settings.php
r3496530 r3496586 403 403 if ($old_token !== $new_token || $old_cache_dur !== $new_cache_dur || $old_sync !== $new_sync) { 404 404 SDAWSOGA_API_Handler::clear_cache(); 405 // Reset failure counter when API settings change so backoff resets 406 if ($old_token !== $new_token) { 407 update_option('sdawsoga_consecutive_failures', 0); 408 } 405 409 } 406 410 } -
sdaweb-social-galleri-feed/trunk/includes/class-api-handler.php
r3496563 r3496586 211 211 } 212 212 $cache_duration = absint(get_option('sdawsoga_cache_duration', SDAWSOGA_DEFAULT_CACHE_DURATION)); 213 $interval = max(900, $cache_duration - 300); 213 $base_interval = max(900, $cache_duration - 300); 214 215 // Exponential backoff on consecutive failures: double the interval per failure, cap at 24 hours 216 $failures = absint(get_option('sdawsoga_consecutive_failures', 0)); 217 if ($failures > 0) { 218 $backoff = $base_interval * pow(2, min($failures, 5)); 219 $interval = min($backoff, SDAWSOGA_MAX_CACHE_DURATION); 220 } else { 221 $interval = $base_interval; 222 } 223 214 224 wp_schedule_single_event(time() + $interval, self::CRON_HOOK); 215 225 } -
sdaweb-social-galleri-feed/trunk/readme.txt
r3496563 r3496586 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 4.1 0.57 Stable tag: 4.11.0 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 125 125 126 126 == Changelog == 127 128 = 4.11.0 = 129 * Added: Exponential backoff on API failures — retry interval doubles per consecutive failure (capped at 24h), resuming normal schedule on success. 130 * Fix: Consecutive failure counter resets when admin changes the API token, so backoff doesn't carry over to a new token. 127 131 128 132 = 4.10.5 = -
sdaweb-social-galleri-feed/trunk/sdaweb-social-galleri-feed.php
r3496563 r3496586 3 3 * Plugin Name: SDAweb Social Galleri Feed 4 4 * Description: Display your Instagram feed as a responsive gallery with lightbox, instant loading, and full admin control. 5 * Version: 4.1 0.55 * Version: 4.11.0 6 6 * Requires at least: 5.8 7 7 * Requires PHP: 7.4 … … 21 21 22 22 // Define plugin constants (guarded against conflicts) 23 if (!defined('SDAWSOGA_VERSION')) define('SDAWSOGA_VERSION', '4.1 0.5');23 if (!defined('SDAWSOGA_VERSION')) define('SDAWSOGA_VERSION', '4.11.0'); 24 24 if (!defined('SDAWSOGA_PLUGIN_FILE')) define('SDAWSOGA_PLUGIN_FILE', __FILE__); 25 25 if (!defined('SDAWSOGA_PLUGIN_DIR')) define('SDAWSOGA_PLUGIN_DIR', plugin_dir_path(__FILE__));
Note: See TracChangeset
for help on using the changeset viewer.