Changeset 2177881
- Timestamp:
- 10/22/2019 10:37:59 PM (6 years ago)
- Location:
- cache-ultra
- Files:
-
- 8 edited
- 1 copied
-
tags/1.1.9 (copied) (copied from cache-ultra/trunk)
-
tags/1.1.9/README.md (modified) (1 diff)
-
tags/1.1.9/index.php (modified) (2 diffs)
-
tags/1.1.9/src/Services/Cache.php (modified) (1 diff)
-
tags/1.1.9/src/Services/Database.php (modified) (4 diffs)
-
trunk/README.md (modified) (1 diff)
-
trunk/index.php (modified) (2 diffs)
-
trunk/src/Services/Cache.php (modified) (1 diff)
-
trunk/src/Services/Database.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cache-ultra/tags/1.1.9/README.md
r2177853 r2177881 8 8 Author: Limelight Department 9 9 Tested up to: 5.2.3 10 Stable tag: "1.1. 8"11 Version 1.1. 810 Stable tag: "1.1.9" 11 Version 1.1.9 12 12 License: GPLv2 or later 13 13 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
cache-ultra/tags/1.1.9/index.php
r2177853 r2177881 4 4 * Plugin URI: https://limelighttheme.com/cache-ultra/ 5 5 * Description: Cache Ultra Plugin for Wordpress 6 * Version: 1.1. 86 * Version: 1.1.9 7 7 * Author: Limelight Department 8 8 * Author URI: https://limelighttheme.com/ … … 17 17 define('CACHE_ULTRA_DIR', __DIR__); 18 18 19 define('CACHE_ULTRA_VERSION', '1.1. 8');19 define('CACHE_ULTRA_VERSION', '1.1.9'); 20 20 21 21 define('CACHE_ULTRA_MODE', 'prod'); -
cache-ultra/tags/1.1.9/src/Services/Cache.php
r2177743 r2177881 52 52 public function CheckCaches() { 53 53 $caches = CacheModel::getEnabled(); 54 $messages = []; 54 55 foreach($caches AS $cache) { 55 56 56 if($cache['status'] != '1') return 'this cache is processing.'; 57 if($cache['status'] != '1') { 58 $messages[$cache['id']] = 'this cache is processing.'; 59 continue; 60 } 57 61 $timestamp = time(); 58 62 $checkTime = $timestamp - $cache['timestamp']; 59 if($checkTime < 28800) return 'has not yet been eight hours.'; 60 63 if($checkTime < 28800){ 64 $messages[$cache['id']] = 'has not yet been eight hours.'; 65 continue; 66 } 61 67 ResourceService::getInstance()->process($cache,['javascript','css'],$cache['timestamp']); 62 68 //$this->processCache($cache); -
cache-ultra/tags/1.1.9/src/Services/Database.php
r2177853 r2177881 28 28 29 29 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 30 if( $this->version <= '1.1.8'){30 if(version_compare($this->version, "1.1.8") <= 0){ 31 31 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'dom_index';" ); 32 32 if(empty($exists)) { … … 36 36 } 37 37 } 38 if( $this->version <= '1.1.3'){38 if(version_compare($this->version, "1.1.3") <= 0){ 39 39 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'contains';" ); 40 40 if(empty($exists)) { … … 44 44 } 45 45 } 46 if( $this->version <= '1.0.8'){46 if(version_compare($this->version, "1.0.8") <= 0){ 47 47 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'remove';" ); 48 48 if(empty($exists)) { … … 52 52 } 53 53 } 54 if( $this->version <= '1.0.0'){54 if(version_compare($this->version, "1.0.0") <= 0){ 55 55 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'type';" ); 56 56 if(empty($exists)) { -
cache-ultra/trunk/README.md
r2177853 r2177881 8 8 Author: Limelight Department 9 9 Tested up to: 5.2.3 10 Stable tag: "1.1. 8"11 Version 1.1. 810 Stable tag: "1.1.9" 11 Version 1.1.9 12 12 License: GPLv2 or later 13 13 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
cache-ultra/trunk/index.php
r2177853 r2177881 4 4 * Plugin URI: https://limelighttheme.com/cache-ultra/ 5 5 * Description: Cache Ultra Plugin for Wordpress 6 * Version: 1.1. 86 * Version: 1.1.9 7 7 * Author: Limelight Department 8 8 * Author URI: https://limelighttheme.com/ … … 17 17 define('CACHE_ULTRA_DIR', __DIR__); 18 18 19 define('CACHE_ULTRA_VERSION', '1.1. 8');19 define('CACHE_ULTRA_VERSION', '1.1.9'); 20 20 21 21 define('CACHE_ULTRA_MODE', 'prod'); -
cache-ultra/trunk/src/Services/Cache.php
r2177743 r2177881 52 52 public function CheckCaches() { 53 53 $caches = CacheModel::getEnabled(); 54 $messages = []; 54 55 foreach($caches AS $cache) { 55 56 56 if($cache['status'] != '1') return 'this cache is processing.'; 57 if($cache['status'] != '1') { 58 $messages[$cache['id']] = 'this cache is processing.'; 59 continue; 60 } 57 61 $timestamp = time(); 58 62 $checkTime = $timestamp - $cache['timestamp']; 59 if($checkTime < 28800) return 'has not yet been eight hours.'; 60 63 if($checkTime < 28800){ 64 $messages[$cache['id']] = 'has not yet been eight hours.'; 65 continue; 66 } 61 67 ResourceService::getInstance()->process($cache,['javascript','css'],$cache['timestamp']); 62 68 //$this->processCache($cache); -
cache-ultra/trunk/src/Services/Database.php
r2177853 r2177881 28 28 29 29 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 30 if( $this->version <= '1.1.8'){30 if(version_compare($this->version, "1.1.8") <= 0){ 31 31 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'dom_index';" ); 32 32 if(empty($exists)) { … … 36 36 } 37 37 } 38 if( $this->version <= '1.1.3'){38 if(version_compare($this->version, "1.1.3") <= 0){ 39 39 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'contains';" ); 40 40 if(empty($exists)) { … … 44 44 } 45 45 } 46 if( $this->version <= '1.0.8'){46 if(version_compare($this->version, "1.0.8") <= 0){ 47 47 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'remove';" ); 48 48 if(empty($exists)) { … … 52 52 } 53 53 } 54 if( $this->version <= '1.0.0'){54 if(version_compare($this->version, "1.0.0") <= 0){ 55 55 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'type';" ); 56 56 if(empty($exists)) {
Note: See TracChangeset
for help on using the changeset viewer.