Changeset 1814154
- Timestamp:
- 02/02/2018 02:29:26 PM (8 years ago)
- Location:
- gator-cache
- Files:
-
- 18 edited
- 8 copied
-
tags/2.1.6 (copied) (copied from gator-cache/trunk)
-
tags/2.1.6/gator-cache.php (copied) (copied from gator-cache/trunk/gator-cache.php) (6 diffs)
-
tags/2.1.6/lib/GatorCacheAdminSettings.php (modified) (1 diff)
-
tags/2.1.6/lib/GatorCachePlugin.php (copied) (copied from gator-cache/trunk/lib/GatorCachePlugin.php) (2 diffs)
-
tags/2.1.6/lib/Reo/Classic/CacheLite.php (modified) (4 diffs)
-
tags/2.1.6/lib/advanced-cache.php (modified) (1 diff)
-
tags/2.1.6/lib/config.ini.php (modified) (1 diff)
-
tags/2.1.6/readme.txt (copied) (copied from gator-cache/trunk/readme.txt) (2 diffs)
-
tags/2.1.6/tpl/options.php (modified) (2 diffs)
-
tags/2.1.6/trunk (copied) (copied from gator-cache/trunk)
-
tags/2.1.6/trunk/gator-cache.php (copied) (copied from gator-cache/trunk/gator-cache.php) (6 diffs)
-
tags/2.1.6/trunk/lib/GatorCacheAdminSettings.php (modified) (1 diff)
-
tags/2.1.6/trunk/lib/GatorCachePlugin.php (copied) (copied from gator-cache/trunk/lib/GatorCachePlugin.php) (2 diffs)
-
tags/2.1.6/trunk/lib/Reo/Classic/CacheLite.php (modified) (4 diffs)
-
tags/2.1.6/trunk/lib/advanced-cache.php (modified) (1 diff)
-
tags/2.1.6/trunk/lib/config.ini.php (modified) (1 diff)
-
tags/2.1.6/trunk/readme.txt (copied) (copied from gator-cache/trunk/readme.txt) (2 diffs)
-
tags/2.1.6/trunk/tpl/options.php (modified) (2 diffs)
-
trunk/gator-cache.php (modified) (6 diffs)
-
trunk/lib/GatorCacheAdminSettings.php (modified) (1 diff)
-
trunk/lib/GatorCachePlugin.php (modified) (2 diffs)
-
trunk/lib/Reo/Classic/CacheLite.php (modified) (4 diffs)
-
trunk/lib/advanced-cache.php (modified) (1 diff)
-
trunk/lib/config.ini.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/tpl/options.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gator-cache/tags/2.1.6/gator-cache.php
r1553194 r1814154 2 2 /** 3 3 * @package Gator Cache 4 * @version 2.1. 54 * @version 2.1.6 5 5 */ 6 6 /* … … 12 12 Text Domain: gator-cache 13 13 Domain Path: /lang 14 Version: 2.1. 514 Version: 2.1.6 15 15 */ 16 16 class WpGatorCache … … 27 27 'app_support' => array(), 28 28 'roles' => array(), 29 'only_user' => false, 29 30 'refresh' => array('home' => true, 'archive' => true, 'all' => false), 30 31 'pingback' => false, … … 48 49 protected static $multiSiteData; 49 50 const PREFIX = 'gtr_cache'; 50 const VERSION = '2.1. 5';51 const VERSION = '2.1.6'; 51 52 const JP_MOBILE_MOD = 'minileven'; // JetPack mobile module slug 52 53 const SUPPORT_LINK = 'https://wordpress.org/support/plugin/gator-cache'; … … 69 70 || ('post' !== $post->post_type && 'page' !== $post->post_type && !in_array($post->post_type, self::getCacheTypes())) 70 71 || (defined('DOING_AJAX') && DOING_AJAX) || is_admin() 71 || (is_user_logged_in() && (!$options['enable_hooks'] || !self::cacheUserContent())) 72 || (($loggedIn = is_user_logged_in()) && (!$options['enable_hooks'] || !self::cacheUserContent())) 73 || !$loggedIn && $options['only_user'] 72 74 || '' === get_option('permalink_structure') 73 75 || self::hasPathExclusion($path) … … 693 695 { 694 696 $groups = array($opts['group']); 695 if ($isJetPackMobile = $opts['jp_mobile_cache']) {697 if ($isJetPackMobile = isset($opts['jp_mobile_cache']) && $opts['jp_mobile_cache']) { 696 698 $groups[] = $opts['group'] . '-jpmobile'; 697 699 } 698 if ( !$opts['skip_ssl']) {700 if (empty($opts['skip_ssl'])) { 699 701 $groups[] = 'ssl@' . $opts['group']; 700 702 if ($isJetPackMobile) { -
gator-cache/tags/2.1.6/lib/GatorCacheAdminSettings.php
r1515890 r1814154 176 176 } 177 177 } 178 if ($roles !== $this->options['roles']) { 178 $onlyUser = isset($_POST['only_user']) && '1' === $_POST['only_user']; 179 var_dump($onlyUser, $_POST); 180 if ($roles !== $this->options['roles'] || $onlyUser !== $this->options['only_user']) { 179 181 $update = true; 180 182 $this->options['roles'] = $roles; 181 183 $cache['skip_user'] = !empty($roles); 184 $this->options['only_user'] = $cache['only_user'] = $cache['skip_user'] && $onlyUser; 182 185 } 183 186 break; -
gator-cache/tags/2.1.6/lib/GatorCachePlugin.php
r1553194 r1814154 74 74 } 75 75 } 76 $config = GatorCache::getConfig($this->configPath); 77 if (empty($this->options['roles']) && $config->get('skip_user')) {// 78 $config->save('skip_user', false); 79 } 76 80 //upgrades done or nothing to upgrade, update the version 77 81 $wpConfig->set('version', $this->options['version'] = WpGatorCache::VERSION); … … 211 215 } 212 216 $this->setContentTypes($config); 217 $config = GatorCache::getConfig($this->configPath); 218 if (empty($this->options['roles']) && $config->get('skip_user')) { 219 $config->save('skip_user', false); 220 } 213 221 return true; 214 222 } -
gator-cache/tags/2.1.6/lib/Reo/Classic/CacheLite.php
r1355383 r1814154 677 677 clearstatcache(); 678 678 $length = @filesize($this->_file); 679 /*@depricated function get_magic_quotes_runtime 679 680 $mqr = get_magic_quotes_runtime(); 680 681 if ($mqr) { 681 682 set_magic_quotes_runtime(0); 682 } 683 }*/ 683 684 if ($this->readControl) { 684 685 if ('none' === $this->readControlType) { … … 698 699 $data = ''; 699 700 } 700 if ($mqr) {701 /* if ($mqr) { 701 702 set_magic_quotes_runtime($mqr); 702 } 703 }*/ 703 704 if ($this->_fileLocking) { 704 705 @flock($fp, LOCK_UN); … … 731 732 @flock($fp, LOCK_EX); 732 733 } 733 734 /*@depricated function get_magic_quotes_runtime 734 735 if ($mqr = get_magic_quotes_runtime()) { 735 736 set_magic_quotes_runtime(0); 736 } 737 }*/ 737 738 if ($this->readControl) { 738 739 @fwrite($fp, $prefix = (0 === $this->lifeTime ? '0000000000' : time() + $this->lifeTime) . $this->_hash($data, $this->readControlType) . $data); … … 740 741 @fwrite($fp, $data); 741 742 } 742 if ($mqr) {743 /*if ($mqr) { 743 744 set_magic_quotes_runtime($mqr); 744 } 745 }*/ 745 746 if ($this->_fileLocking) { 746 747 @flock($fp, LOCK_UN); -
gator-cache/tags/2.1.6/lib/advanced-cache.php
r1520541 r1814154 64 64 } 65 65 } 66 // not logged in 67 if ($config->get('skip_user') && $config->get('only_user')) { 68 return; // do not serve cache to non-logged in user a rare use case 69 } 66 70 } 67 71 $request = GatorCache::getRequest(); 68 if ('GET' !== $request->getMethod() || $request->hasQueryString() || '.php' === substr($request->getRequestUri(), -4)72 if ('GET' !== $request->getMethod() || ($request->hasQueryString() && !$config->get('serve_qs')) || '.php' === substr($request->getRequestUri(), -4) 69 73 || ($request->isSecure() && $config->get('skip_ssl')) 70 74 || false === ($host = $config->get($request->isSecure() && $config->has('secure_host') ? 'secure_host' : 'host')) -
gator-cache/tags/2.1.6/lib/config.ini.php
r1355383 r1814154 7 7 oc_enabled = 0 8 8 gzip = 1 9 skip_user = 1 9 skip_user = 0 10 only_user = 0 10 11 last_modified = 0 11 12 cache_warm = 0 -
gator-cache/tags/2.1.6/readme.txt
r1553202 r1814154 4 4 Tags: cache, performance, optimize, bbpress, woocommerce, multisite, jetpack mobile 5 5 Requires at least: 3.8 6 Tested up to: 4. 77 Stable tag: 2.1. 56 Tested up to: 4.9.2 7 Stable tag: 2.1.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 55 55 56 56 == Changelog == 57 = 2.1.6 = 58 * WordPress 4.9.2 compatiblity verified 59 * PHP 7.x compatibilty, fix warning errors 60 * Fix warning error with JetPack mobile compatiblity 57 61 = 2.1.5 = 58 62 * Redis Object Cache plugin compatiblity, fix issue with object-cache deletion. -
gator-cache/tags/2.1.6/tpl/options.php
r1520541 r1814154 228 228 </select> 229 229 </p> 230 <p> 231 <input type="checkbox" name="gci_only_user" id="gci_only_user" value="1"<?php if($options['only_user']){echo ' checked="checked"';}?>/> 232 <label for="gci_only_user"><?php _e('Only serve cache to logged in users', 'gator-cache');?></label> 233 </p> 230 234 <p><button class="button-primary"><?php _e('Update', 'gator-cache');?></button></p> 231 235 <p><i class="fa fa-lightbulb-o"></i> <?php _e('Unless your theme displays user specific content via ajax, caching logged-in user content is usually not a good idea.', 'gator-cache');?></p> … … 330 334 if(1 === sel.length){ 331 335 var form = [{'name':sel.attr('id'),'value': sel.val()}]; 336 if ('gci_roles' === form[0].name) { 337 form.push({'name':'only_user','value':$('#gci_only_user').prop('checked') ? 1 : 0}); 338 } 332 339 } 333 340 else{ -
gator-cache/tags/2.1.6/trunk/gator-cache.php
r1553194 r1814154 2 2 /** 3 3 * @package Gator Cache 4 * @version 2.1. 54 * @version 2.1.6 5 5 */ 6 6 /* … … 12 12 Text Domain: gator-cache 13 13 Domain Path: /lang 14 Version: 2.1. 514 Version: 2.1.6 15 15 */ 16 16 class WpGatorCache … … 27 27 'app_support' => array(), 28 28 'roles' => array(), 29 'only_user' => false, 29 30 'refresh' => array('home' => true, 'archive' => true, 'all' => false), 30 31 'pingback' => false, … … 48 49 protected static $multiSiteData; 49 50 const PREFIX = 'gtr_cache'; 50 const VERSION = '2.1. 5';51 const VERSION = '2.1.6'; 51 52 const JP_MOBILE_MOD = 'minileven'; // JetPack mobile module slug 52 53 const SUPPORT_LINK = 'https://wordpress.org/support/plugin/gator-cache'; … … 69 70 || ('post' !== $post->post_type && 'page' !== $post->post_type && !in_array($post->post_type, self::getCacheTypes())) 70 71 || (defined('DOING_AJAX') && DOING_AJAX) || is_admin() 71 || (is_user_logged_in() && (!$options['enable_hooks'] || !self::cacheUserContent())) 72 || (($loggedIn = is_user_logged_in()) && (!$options['enable_hooks'] || !self::cacheUserContent())) 73 || !$loggedIn && $options['only_user'] 72 74 || '' === get_option('permalink_structure') 73 75 || self::hasPathExclusion($path) … … 693 695 { 694 696 $groups = array($opts['group']); 695 if ($isJetPackMobile = $opts['jp_mobile_cache']) {697 if ($isJetPackMobile = isset($opts['jp_mobile_cache']) && $opts['jp_mobile_cache']) { 696 698 $groups[] = $opts['group'] . '-jpmobile'; 697 699 } 698 if ( !$opts['skip_ssl']) {700 if (empty($opts['skip_ssl'])) { 699 701 $groups[] = 'ssl@' . $opts['group']; 700 702 if ($isJetPackMobile) { -
gator-cache/tags/2.1.6/trunk/lib/GatorCacheAdminSettings.php
r1515890 r1814154 176 176 } 177 177 } 178 if ($roles !== $this->options['roles']) { 178 $onlyUser = isset($_POST['only_user']) && '1' === $_POST['only_user']; 179 var_dump($onlyUser, $_POST); 180 if ($roles !== $this->options['roles'] || $onlyUser !== $this->options['only_user']) { 179 181 $update = true; 180 182 $this->options['roles'] = $roles; 181 183 $cache['skip_user'] = !empty($roles); 184 $this->options['only_user'] = $cache['only_user'] = $cache['skip_user'] && $onlyUser; 182 185 } 183 186 break; -
gator-cache/tags/2.1.6/trunk/lib/GatorCachePlugin.php
r1553194 r1814154 74 74 } 75 75 } 76 $config = GatorCache::getConfig($this->configPath); 77 if (empty($this->options['roles']) && $config->get('skip_user')) {// 78 $config->save('skip_user', false); 79 } 76 80 //upgrades done or nothing to upgrade, update the version 77 81 $wpConfig->set('version', $this->options['version'] = WpGatorCache::VERSION); … … 211 215 } 212 216 $this->setContentTypes($config); 217 $config = GatorCache::getConfig($this->configPath); 218 if (empty($this->options['roles']) && $config->get('skip_user')) { 219 $config->save('skip_user', false); 220 } 213 221 return true; 214 222 } -
gator-cache/tags/2.1.6/trunk/lib/Reo/Classic/CacheLite.php
r1355383 r1814154 677 677 clearstatcache(); 678 678 $length = @filesize($this->_file); 679 /*@depricated function get_magic_quotes_runtime 679 680 $mqr = get_magic_quotes_runtime(); 680 681 if ($mqr) { 681 682 set_magic_quotes_runtime(0); 682 } 683 }*/ 683 684 if ($this->readControl) { 684 685 if ('none' === $this->readControlType) { … … 698 699 $data = ''; 699 700 } 700 if ($mqr) {701 /* if ($mqr) { 701 702 set_magic_quotes_runtime($mqr); 702 } 703 }*/ 703 704 if ($this->_fileLocking) { 704 705 @flock($fp, LOCK_UN); … … 731 732 @flock($fp, LOCK_EX); 732 733 } 733 734 /*@depricated function get_magic_quotes_runtime 734 735 if ($mqr = get_magic_quotes_runtime()) { 735 736 set_magic_quotes_runtime(0); 736 } 737 }*/ 737 738 if ($this->readControl) { 738 739 @fwrite($fp, $prefix = (0 === $this->lifeTime ? '0000000000' : time() + $this->lifeTime) . $this->_hash($data, $this->readControlType) . $data); … … 740 741 @fwrite($fp, $data); 741 742 } 742 if ($mqr) {743 /*if ($mqr) { 743 744 set_magic_quotes_runtime($mqr); 744 } 745 }*/ 745 746 if ($this->_fileLocking) { 746 747 @flock($fp, LOCK_UN); -
gator-cache/tags/2.1.6/trunk/lib/advanced-cache.php
r1520541 r1814154 64 64 } 65 65 } 66 // not logged in 67 if ($config->get('skip_user') && $config->get('only_user')) { 68 return; // do not serve cache to non-logged in user a rare use case 69 } 66 70 } 67 71 $request = GatorCache::getRequest(); 68 if ('GET' !== $request->getMethod() || $request->hasQueryString() || '.php' === substr($request->getRequestUri(), -4)72 if ('GET' !== $request->getMethod() || ($request->hasQueryString() && !$config->get('serve_qs')) || '.php' === substr($request->getRequestUri(), -4) 69 73 || ($request->isSecure() && $config->get('skip_ssl')) 70 74 || false === ($host = $config->get($request->isSecure() && $config->has('secure_host') ? 'secure_host' : 'host')) -
gator-cache/tags/2.1.6/trunk/lib/config.ini.php
r1355383 r1814154 7 7 oc_enabled = 0 8 8 gzip = 1 9 skip_user = 1 9 skip_user = 0 10 only_user = 0 10 11 last_modified = 0 11 12 cache_warm = 0 -
gator-cache/tags/2.1.6/trunk/readme.txt
r1553202 r1814154 4 4 Tags: cache, performance, optimize, bbpress, woocommerce, multisite, jetpack mobile 5 5 Requires at least: 3.8 6 Tested up to: 4. 77 Stable tag: 2.1. 56 Tested up to: 4.9.2 7 Stable tag: 2.1.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 55 55 56 56 == Changelog == 57 = 2.1.6 = 58 * WordPress 4.9.2 compatiblity verified 59 * PHP 7.x compatibilty, fix warning errors 60 * Fix warning error with JetPack mobile compatiblity 57 61 = 2.1.5 = 58 62 * Redis Object Cache plugin compatiblity, fix issue with object-cache deletion. -
gator-cache/tags/2.1.6/trunk/tpl/options.php
r1520541 r1814154 228 228 </select> 229 229 </p> 230 <p> 231 <input type="checkbox" name="gci_only_user" id="gci_only_user" value="1"<?php if($options['only_user']){echo ' checked="checked"';}?>/> 232 <label for="gci_only_user"><?php _e('Only serve cache to logged in users', 'gator-cache');?></label> 233 </p> 230 234 <p><button class="button-primary"><?php _e('Update', 'gator-cache');?></button></p> 231 235 <p><i class="fa fa-lightbulb-o"></i> <?php _e('Unless your theme displays user specific content via ajax, caching logged-in user content is usually not a good idea.', 'gator-cache');?></p> … … 330 334 if(1 === sel.length){ 331 335 var form = [{'name':sel.attr('id'),'value': sel.val()}]; 336 if ('gci_roles' === form[0].name) { 337 form.push({'name':'only_user','value':$('#gci_only_user').prop('checked') ? 1 : 0}); 338 } 332 339 } 333 340 else{ -
gator-cache/trunk/gator-cache.php
r1553194 r1814154 2 2 /** 3 3 * @package Gator Cache 4 * @version 2.1. 54 * @version 2.1.6 5 5 */ 6 6 /* … … 12 12 Text Domain: gator-cache 13 13 Domain Path: /lang 14 Version: 2.1. 514 Version: 2.1.6 15 15 */ 16 16 class WpGatorCache … … 27 27 'app_support' => array(), 28 28 'roles' => array(), 29 'only_user' => false, 29 30 'refresh' => array('home' => true, 'archive' => true, 'all' => false), 30 31 'pingback' => false, … … 48 49 protected static $multiSiteData; 49 50 const PREFIX = 'gtr_cache'; 50 const VERSION = '2.1. 5';51 const VERSION = '2.1.6'; 51 52 const JP_MOBILE_MOD = 'minileven'; // JetPack mobile module slug 52 53 const SUPPORT_LINK = 'https://wordpress.org/support/plugin/gator-cache'; … … 69 70 || ('post' !== $post->post_type && 'page' !== $post->post_type && !in_array($post->post_type, self::getCacheTypes())) 70 71 || (defined('DOING_AJAX') && DOING_AJAX) || is_admin() 71 || (is_user_logged_in() && (!$options['enable_hooks'] || !self::cacheUserContent())) 72 || (($loggedIn = is_user_logged_in()) && (!$options['enable_hooks'] || !self::cacheUserContent())) 73 || !$loggedIn && $options['only_user'] 72 74 || '' === get_option('permalink_structure') 73 75 || self::hasPathExclusion($path) … … 693 695 { 694 696 $groups = array($opts['group']); 695 if ($isJetPackMobile = $opts['jp_mobile_cache']) {697 if ($isJetPackMobile = isset($opts['jp_mobile_cache']) && $opts['jp_mobile_cache']) { 696 698 $groups[] = $opts['group'] . '-jpmobile'; 697 699 } 698 if ( !$opts['skip_ssl']) {700 if (empty($opts['skip_ssl'])) { 699 701 $groups[] = 'ssl@' . $opts['group']; 700 702 if ($isJetPackMobile) { -
gator-cache/trunk/lib/GatorCacheAdminSettings.php
r1515890 r1814154 176 176 } 177 177 } 178 if ($roles !== $this->options['roles']) { 178 $onlyUser = isset($_POST['only_user']) && '1' === $_POST['only_user']; 179 var_dump($onlyUser, $_POST); 180 if ($roles !== $this->options['roles'] || $onlyUser !== $this->options['only_user']) { 179 181 $update = true; 180 182 $this->options['roles'] = $roles; 181 183 $cache['skip_user'] = !empty($roles); 184 $this->options['only_user'] = $cache['only_user'] = $cache['skip_user'] && $onlyUser; 182 185 } 183 186 break; -
gator-cache/trunk/lib/GatorCachePlugin.php
r1553194 r1814154 74 74 } 75 75 } 76 $config = GatorCache::getConfig($this->configPath); 77 if (empty($this->options['roles']) && $config->get('skip_user')) {// 78 $config->save('skip_user', false); 79 } 76 80 //upgrades done or nothing to upgrade, update the version 77 81 $wpConfig->set('version', $this->options['version'] = WpGatorCache::VERSION); … … 211 215 } 212 216 $this->setContentTypes($config); 217 $config = GatorCache::getConfig($this->configPath); 218 if (empty($this->options['roles']) && $config->get('skip_user')) { 219 $config->save('skip_user', false); 220 } 213 221 return true; 214 222 } -
gator-cache/trunk/lib/Reo/Classic/CacheLite.php
r1355383 r1814154 677 677 clearstatcache(); 678 678 $length = @filesize($this->_file); 679 /*@depricated function get_magic_quotes_runtime 679 680 $mqr = get_magic_quotes_runtime(); 680 681 if ($mqr) { 681 682 set_magic_quotes_runtime(0); 682 } 683 }*/ 683 684 if ($this->readControl) { 684 685 if ('none' === $this->readControlType) { … … 698 699 $data = ''; 699 700 } 700 if ($mqr) {701 /* if ($mqr) { 701 702 set_magic_quotes_runtime($mqr); 702 } 703 }*/ 703 704 if ($this->_fileLocking) { 704 705 @flock($fp, LOCK_UN); … … 731 732 @flock($fp, LOCK_EX); 732 733 } 733 734 /*@depricated function get_magic_quotes_runtime 734 735 if ($mqr = get_magic_quotes_runtime()) { 735 736 set_magic_quotes_runtime(0); 736 } 737 }*/ 737 738 if ($this->readControl) { 738 739 @fwrite($fp, $prefix = (0 === $this->lifeTime ? '0000000000' : time() + $this->lifeTime) . $this->_hash($data, $this->readControlType) . $data); … … 740 741 @fwrite($fp, $data); 741 742 } 742 if ($mqr) {743 /*if ($mqr) { 743 744 set_magic_quotes_runtime($mqr); 744 } 745 }*/ 745 746 if ($this->_fileLocking) { 746 747 @flock($fp, LOCK_UN); -
gator-cache/trunk/lib/advanced-cache.php
r1520541 r1814154 64 64 } 65 65 } 66 // not logged in 67 if ($config->get('skip_user') && $config->get('only_user')) { 68 return; // do not serve cache to non-logged in user a rare use case 69 } 66 70 } 67 71 $request = GatorCache::getRequest(); 68 if ('GET' !== $request->getMethod() || $request->hasQueryString() || '.php' === substr($request->getRequestUri(), -4)72 if ('GET' !== $request->getMethod() || ($request->hasQueryString() && !$config->get('serve_qs')) || '.php' === substr($request->getRequestUri(), -4) 69 73 || ($request->isSecure() && $config->get('skip_ssl')) 70 74 || false === ($host = $config->get($request->isSecure() && $config->has('secure_host') ? 'secure_host' : 'host')) -
gator-cache/trunk/lib/config.ini.php
r1355383 r1814154 7 7 oc_enabled = 0 8 8 gzip = 1 9 skip_user = 1 9 skip_user = 0 10 only_user = 0 10 11 last_modified = 0 11 12 cache_warm = 0 -
gator-cache/trunk/readme.txt
r1553202 r1814154 4 4 Tags: cache, performance, optimize, bbpress, woocommerce, multisite, jetpack mobile 5 5 Requires at least: 3.8 6 Tested up to: 4. 77 Stable tag: 2.1. 56 Tested up to: 4.9.2 7 Stable tag: 2.1.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 55 55 56 56 == Changelog == 57 = 2.1.6 = 58 * WordPress 4.9.2 compatiblity verified 59 * PHP 7.x compatibilty, fix warning errors 60 * Fix warning error with JetPack mobile compatiblity 57 61 = 2.1.5 = 58 62 * Redis Object Cache plugin compatiblity, fix issue with object-cache deletion. -
gator-cache/trunk/tpl/options.php
r1520541 r1814154 228 228 </select> 229 229 </p> 230 <p> 231 <input type="checkbox" name="gci_only_user" id="gci_only_user" value="1"<?php if($options['only_user']){echo ' checked="checked"';}?>/> 232 <label for="gci_only_user"><?php _e('Only serve cache to logged in users', 'gator-cache');?></label> 233 </p> 230 234 <p><button class="button-primary"><?php _e('Update', 'gator-cache');?></button></p> 231 235 <p><i class="fa fa-lightbulb-o"></i> <?php _e('Unless your theme displays user specific content via ajax, caching logged-in user content is usually not a good idea.', 'gator-cache');?></p> … … 330 334 if(1 === sel.length){ 331 335 var form = [{'name':sel.attr('id'),'value': sel.val()}]; 336 if ('gci_roles' === form[0].name) { 337 form.push({'name':'only_user','value':$('#gci_only_user').prop('checked') ? 1 : 0}); 338 } 332 339 } 333 340 else{
Note: See TracChangeset
for help on using the changeset viewer.