Plugin Directory

Changeset 3496586


Ignore:
Timestamp:
04/01/2026 01:00:24 PM (15 hours ago)
Author:
rstake
Message:

Update to version 4.11.0

Location:
sdaweb-social-galleri-feed/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • sdaweb-social-galleri-feed/trunk/blocks/gallery/block.json

    r3496563 r3496586  
    33    "apiVersion": 3,
    44    "name": "sdawsoga/gallery",
    5     "version": "4.10.5",
     5    "version": "4.11.0",
    66    "title": "Social Galleri Feed",
    77    "category": "embed",
  • sdaweb-social-galleri-feed/trunk/includes/class-admin-settings.php

    r3496530 r3496586  
    403403        if ($old_token !== $new_token || $old_cache_dur !== $new_cache_dur || $old_sync !== $new_sync) {
    404404            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            }
    405409        }
    406410    }
  • sdaweb-social-galleri-feed/trunk/includes/class-api-handler.php

    r3496563 r3496586  
    211211        }
    212212        $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
    214224        wp_schedule_single_event(time() + $interval, self::CRON_HOOK);
    215225    }
  • sdaweb-social-galleri-feed/trunk/readme.txt

    r3496563 r3496586  
    55Tested up to: 6.9
    66Requires PHP: 7.4
    7 Stable tag: 4.10.5
     7Stable tag: 4.11.0
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    125125
    126126== 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.
    127131
    128132= 4.10.5 =
  • sdaweb-social-galleri-feed/trunk/sdaweb-social-galleri-feed.php

    r3496563 r3496586  
    33 * Plugin Name: SDAweb Social Galleri Feed
    44 * Description: Display your Instagram feed as a responsive gallery with lightbox, instant loading, and full admin control.
    5  * Version: 4.10.5
     5 * Version: 4.11.0
    66 * Requires at least: 5.8
    77 * Requires PHP: 7.4
     
    2121
    2222// Define plugin constants (guarded against conflicts)
    23 if (!defined('SDAWSOGA_VERSION'))              define('SDAWSOGA_VERSION', '4.10.5');
     23if (!defined('SDAWSOGA_VERSION'))              define('SDAWSOGA_VERSION', '4.11.0');
    2424if (!defined('SDAWSOGA_PLUGIN_FILE'))          define('SDAWSOGA_PLUGIN_FILE', __FILE__);
    2525if (!defined('SDAWSOGA_PLUGIN_DIR'))           define('SDAWSOGA_PLUGIN_DIR', plugin_dir_path(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.