Plugin Directory

Changeset 3448407


Ignore:
Timestamp:
01/28/2026 06:54:25 AM (6 weeks ago)
Author:
griffinforms
Message:

Release 2.1.8.1

Location:
griffinforms-form-builder/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • griffinforms-form-builder/trunk/config.php

    r3448124 r3448407  
    55class Config
    66{
    7     public const VERSION = '2.1.8.0';
     7    public const VERSION = '2.1.8.1';
    88    public const DB_VER = '1.0';
    99    public const PHP_REQUIRED = '8.2';
  • griffinforms-form-builder/trunk/db.php

    r3448124 r3448407  
    55class Db
    66{   
     7    private const MIGRATIONS_VERSION = '2.1.8.0';
    78    protected $config;
    89    public $name_columns;
     
    421422    {
    422423        $this->setGlobals();
    423         $this->migrateFormTable();
    424         $this->maybeBackfillLifetimeSubmissionCount();
     424        $current_version = get_option('griffinforms_db_migrations_version', '0');
     425        $backfill_done = get_option('griffinforms_lifetime_submission_count_backfilled');
     426
     427        if (version_compare($current_version, self::MIGRATIONS_VERSION, '>=') && !empty($backfill_done)) {
     428            return;
     429        }
     430
     431        $lock_key = 'griffinforms_db_migrations_lock';
     432        if (get_transient($lock_key)) {
     433            return;
     434        }
     435        set_transient($lock_key, 1, MINUTE_IN_SECONDS * 5);
     436
     437        try {
     438            if (version_compare($current_version, self::MIGRATIONS_VERSION, '<')) {
     439                $this->migrateFormTable();
     440                update_option('griffinforms_db_migrations_version', self::MIGRATIONS_VERSION);
     441            }
     442            $this->maybeBackfillLifetimeSubmissionCount();
     443        } finally {
     444            delete_transient($lock_key);
     445        }
    425446    }
    426447
  • griffinforms-form-builder/trunk/griffinforms.php

    r3448124 r3448407  
    44 * Plugin URI:        https://griffinforms.com/
    55 * Description:       A powerful and flexible form builder for WordPress. Create multi-page forms with drag-and-drop ease, custom validations, and full submission management.
    6  * Version:           2.1.8.0
     6 * Version:           2.1.8.1
    77 * Requires at least: 6.6
    88 * Requires PHP:      8.2
  • griffinforms-form-builder/trunk/readme.txt

    r3448136 r3448407  
    55Tested up to: 6.9
    66Requires PHP: 8.2
    7 Stable tag: 2.1.8.0
     7Stable tag: 2.1.8.1
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    172172== Changelog ==
    173173
     174= 2.1.8.1 – 2026-01-27 =
     175* Fix: Database migrations now cache completion state to avoid repeated INFORMATION_SCHEMA checks on every request.
     176
    174177= 2.1.8.0 – 2026-01-27 =
    175178* Feature: Form availability window with start/end date + custom closed messages (frontend + submission guard).
     
    485488== Upgrade Notice ==
    486489
     490= 2.1.8.1 =
     491Fixes repeated schema checks by caching migration completion. Recommended update.
     492
    487493= 2.1.8.0 =
    488494Adds a form availability window, lifetime submission counting (with admin exclusion + reset), and a new frontend request-locking system. Settings tabs and no‑JS notice styling are also refreshed. Recommended update.
Note: See TracChangeset for help on using the changeset viewer.