Changeset 3253405
- Timestamp:
- 03/10/2025 02:59:57 PM (13 months ago)
- Location:
- cache-using-gzip
- Files:
-
- 20 added
- 3 edited
-
tags/2.8.3 (added)
-
tags/2.8.3/autoload.php (added)
-
tags/2.8.3/cache-using-gzip.php (added)
-
tags/2.8.3/classes (added)
-
tags/2.8.3/classes/CUGZ (added)
-
tags/2.8.3/classes/CUGZ/class-cugz-gzip-cache.php (added)
-
tags/2.8.3/css (added)
-
tags/2.8.3/css/jquery-ui.css (added)
-
tags/2.8.3/css/jquery-ui.min.css (added)
-
tags/2.8.3/css/style.css (added)
-
tags/2.8.3/css/style.min.css (added)
-
tags/2.8.3/js (added)
-
tags/2.8.3/js/main.js (added)
-
tags/2.8.3/js/main.min.js (added)
-
tags/2.8.3/license.txt (added)
-
tags/2.8.3/readme.txt (added)
-
tags/2.8.3/templates (added)
-
tags/2.8.3/templates/htaccess.sample (added)
-
tags/2.8.3/templates/nginx.conf.sample (added)
-
tags/2.8.3/templates/options-page.php (added)
-
trunk/cache-using-gzip.php (modified) (1 diff)
-
trunk/classes/CUGZ/class-cugz-gzip-cache.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cache-using-gzip/trunk/cache-using-gzip.php
r3235050 r3253405 2 2 /** 3 3 * Plugin Name: Cache Using Gzip 4 * Version: 2.8. 25 * Description: Creates gzip pedfiles on your server to immensly improve page speed for site visitors4 * Version: 2.8.3 5 * Description: Creates gzip files on your server to immensly improve page speed for site visitors 6 6 * Author: Cache Using Gzip 7 7 * Author URI: https://wpgzipcache.com -
cache-using-gzip/trunk/classes/CUGZ/class-cugz-gzip-cache.php
r3235050 r3253405 192 192 193 193 public static function cugz_get_option($option_name) 194 { 195 if(self::cugz_skip_option(self::$options[$option_name])) return false; 196 197 $cached_value = wp_cache_get($option_name, 'options'); 198 199 if ($cached_value === false) { 200 201 $option_value = get_option($option_name); 202 203 if ($option_value !== false) { 204 205 wp_cache_set($option_name, $option_value, 'options'); 206 207 } 208 209 return $option_value; 210 211 } else { 212 213 return $cached_value; 214 215 } 216 } 194 { 195 if(isset(self::$options[$option_name]) && self::cugz_skip_option(self::$options[$option_name])) return false; 196 197 $cached_value = wp_cache_get($option_name, 'options'); 198 199 if ($cached_value === false) { 200 201 $option_value = get_option($option_name); 202 203 if ($option_value === false) { 204 205 $option_value = self::$options[$option_name]['default'] ?? false; 206 207 add_option($option_name, $option_value, '', false); 208 209 } 210 211 wp_cache_set($option_name, $option_value, 'options'); 212 213 return $option_value; 214 215 } else { 216 217 return maybe_unserialize($cached_value); 218 219 } 220 } 217 221 218 222 public function cugz_notice($message, $type) -
cache-using-gzip/trunk/readme.txt
r3235057 r3253405 5 5 Tested up to: 6.7.2 6 6 Requires PHP: 7.4 7 Stable tag: 2.8. 27 Stable tag: 2.8.3 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Creates gzip pedfiles on your server to immensly improve page speed for site visitors11 Creates gzip files on your server to immensly improve page speed for site visitors 12 12 13 13 == Description == … … 58 58 59 59 == Changelog == 60 61 = 2.8.3 = 62 * Improve option handling 60 63 61 64 = 2.8.2 =
Note: See TracChangeset
for help on using the changeset viewer.