Plugin Directory

Changeset 3223079


Ignore:
Timestamp:
01/15/2025 05:05:57 PM (11 months ago)
Author:
wfryan
Message:

1.1.15 - January 15, 2025

  • Change: Reworked setting caching to avoid issues with some object caches
Location:
wordfence-login-security
Files:
42 added
42 deleted
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wordfence-login-security/tags/1.1.15/classes/model/settings/db.php

    r2124103 r3223079  
    99    const AUTOLOAD_NO = 'no';
    1010    const AUTOLOAD_YES = 'yes';
     11   
     12    private static $_cache = array();
    1113   
    1214    public function set($key, $value, $autoload = self::AUTOLOAD_YES, $allowOverwrite = true) {
     
    6971        global $wpdb;
    7072       
    71         $settings = wp_cache_get('allsettings', 'wordfence-ls');
    72         if (!$settings) {
     73        if (empty(self::$_cache)) {
    7374            $table = Controller_DB::shared()->settings;
    7475            $suppress = $wpdb->suppress_errors();
     
    8081            }
    8182           
    82             wp_cache_add_non_persistent_groups('wordfence-ls');
    83             wp_cache_add('allsettings', $settings, 'wordfence-ls');
     83            self::$_cache = $settings;
    8484        }
    8585       
    86         return $settings;
     86        return self::$_cache;
    8787    }
    8888   
     
    9090        $settings = $this->_cached();
    9191        $settings[$key] = $value;
    92         wp_cache_set('allsettings', $settings, 'wordfence-ls');
     92        self::$_cache = $settings;
    9393    }
    9494   
     
    9797        if (isset($settings[$key])) {
    9898            unset($settings[$key]);
    99             wp_cache_set('allsettings', $settings, 'wordfence-ls');
     99            self::$_cache = $settings;
    100100        }
    101101    }
     
    113113        if ($value !== null) {
    114114            $settings[$key] = $value;
    115             wp_cache_set('allsettings', $settings, 'wordfence-ls');
     115            self::$_cache = $settings;
    116116        }
    117117        return $value;
  • wordfence-login-security/tags/1.1.15/languages/wordfence-login-security.pot

    r3216078 r3223079  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Wordfence Login Security 1.1.14\n"
    6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordfence-login-security-zip-yKQU9cJFC\n"
     5"Project-Id-Version: Wordfence Login Security 1.1.15\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordfence-login-security-zip-gND5QjeUN\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    88"Language-Team: LANGUAGE <[email protected]>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-01-02T16:27:17+00:00\n"
     12"POT-Creation-Date: 2025-01-15T16:53:13+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.7.1\n"
  • wordfence-login-security/tags/1.1.15/readme.txt

    r3216078 r3223079  
    55Requires PHP: 7.0
    66Tested up to: 6.7
    7 Stable tag: 1.1.14
     7Stable tag: 1.1.15
    88
    99Secure your website with Wordfence Login Security, providing two-factor authentication, login and registration CAPTCHA, and XML-RPC protection.
     
    5858
    5959== Changelog ==
     60
     61= 1.1.15 - January 15, 2025 =
     62* Change: Reworked setting caching to avoid issues with some object caches
    6063
    6164= 1.1.14 - January 2, 2025 =
  • wordfence-login-security/tags/1.1.15/wordfence-login-security.php

    r3216078 r3223079  
    55Author: Wordfence
    66Author URI: https://www.wordfence.com/
    7 Version: 1.1.14
     7Version: 1.1.15
    88Network: true
    99Requires at least: 4.7
     
    3939    define('WORDFENCE_LS_FROM_CORE', ($wfCoreActive && isset($wfCoreLoading) && $wfCoreLoading));
    4040   
    41     define('WORDFENCE_LS_VERSION', '1.1.14');
    42     define('WORDFENCE_LS_BUILD_NUMBER', '1735835237');
     41    define('WORDFENCE_LS_VERSION', '1.1.15');
     42    define('WORDFENCE_LS_BUILD_NUMBER', '1736959993');
    4343
    4444    define('WORDFENCE_LS_PLUGIN_BASENAME', plugin_basename(__FILE__));
  • wordfence-login-security/trunk/classes/model/settings/db.php

    r2124103 r3223079  
    99    const AUTOLOAD_NO = 'no';
    1010    const AUTOLOAD_YES = 'yes';
     11   
     12    private static $_cache = array();
    1113   
    1214    public function set($key, $value, $autoload = self::AUTOLOAD_YES, $allowOverwrite = true) {
     
    6971        global $wpdb;
    7072       
    71         $settings = wp_cache_get('allsettings', 'wordfence-ls');
    72         if (!$settings) {
     73        if (empty(self::$_cache)) {
    7374            $table = Controller_DB::shared()->settings;
    7475            $suppress = $wpdb->suppress_errors();
     
    8081            }
    8182           
    82             wp_cache_add_non_persistent_groups('wordfence-ls');
    83             wp_cache_add('allsettings', $settings, 'wordfence-ls');
     83            self::$_cache = $settings;
    8484        }
    8585       
    86         return $settings;
     86        return self::$_cache;
    8787    }
    8888   
     
    9090        $settings = $this->_cached();
    9191        $settings[$key] = $value;
    92         wp_cache_set('allsettings', $settings, 'wordfence-ls');
     92        self::$_cache = $settings;
    9393    }
    9494   
     
    9797        if (isset($settings[$key])) {
    9898            unset($settings[$key]);
    99             wp_cache_set('allsettings', $settings, 'wordfence-ls');
     99            self::$_cache = $settings;
    100100        }
    101101    }
     
    113113        if ($value !== null) {
    114114            $settings[$key] = $value;
    115             wp_cache_set('allsettings', $settings, 'wordfence-ls');
     115            self::$_cache = $settings;
    116116        }
    117117        return $value;
  • wordfence-login-security/trunk/languages/wordfence-login-security.pot

    r3216078 r3223079  
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Wordfence Login Security 1.1.14\n"
    6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordfence-login-security-zip-yKQU9cJFC\n"
     5"Project-Id-Version: Wordfence Login Security 1.1.15\n"
     6"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wordfence-login-security-zip-gND5QjeUN\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    88"Language-Team: LANGUAGE <[email protected]>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2025-01-02T16:27:17+00:00\n"
     12"POT-Creation-Date: 2025-01-15T16:53:13+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.7.1\n"
  • wordfence-login-security/trunk/readme.txt

    r3216078 r3223079  
    55Requires PHP: 7.0
    66Tested up to: 6.7
    7 Stable tag: 1.1.14
     7Stable tag: 1.1.15
    88
    99Secure your website with Wordfence Login Security, providing two-factor authentication, login and registration CAPTCHA, and XML-RPC protection.
     
    5858
    5959== Changelog ==
     60
     61= 1.1.15 - January 15, 2025 =
     62* Change: Reworked setting caching to avoid issues with some object caches
    6063
    6164= 1.1.14 - January 2, 2025 =
  • wordfence-login-security/trunk/wordfence-login-security.php

    r3216078 r3223079  
    55Author: Wordfence
    66Author URI: https://www.wordfence.com/
    7 Version: 1.1.14
     7Version: 1.1.15
    88Network: true
    99Requires at least: 4.7
     
    3939    define('WORDFENCE_LS_FROM_CORE', ($wfCoreActive && isset($wfCoreLoading) && $wfCoreLoading));
    4040   
    41     define('WORDFENCE_LS_VERSION', '1.1.14');
    42     define('WORDFENCE_LS_BUILD_NUMBER', '1735835237');
     41    define('WORDFENCE_LS_VERSION', '1.1.15');
     42    define('WORDFENCE_LS_BUILD_NUMBER', '1736959993');
    4343
    4444    define('WORDFENCE_LS_PLUGIN_BASENAME', plugin_basename(__FILE__));
Note: See TracChangeset for help on using the changeset viewer.