Changeset 2177131
- Timestamp:
- 10/21/2019 06:26:07 PM (6 years ago)
- Location:
- cache-ultra
- Files:
-
- 1 deleted
- 6 edited
- 1 copied
-
tags/1.1.2 (deleted)
-
tags/1.1.4 (copied) (copied from cache-ultra/trunk)
-
tags/1.1.4/README.md (modified) (2 diffs)
-
tags/1.1.4/index.php (modified) (5 diffs)
-
tags/1.1.4/src/Services/Database.php (modified) (4 diffs)
-
trunk/README.md (modified) (2 diffs)
-
trunk/index.php (modified) (5 diffs)
-
trunk/src/Services/Database.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cache-ultra/tags/1.1.4/README.md
r2177127 r2177131 8 8 Author: Limelight Department 9 9 Tested up to: 5.2.3 10 Stable tag: "1.1. 3"11 Version 1.1. 310 Stable tag: "1.1.4" 11 Version 1.1.4 12 12 License: GPLv2 or later 13 13 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 == Changelog == 49 49 50 1.1.4 51 - Modified the activation code to match current DB specs. 50 52 1.1.3 51 53 - Fixed issues with decoding certain base64 resource data. -
cache-ultra/tags/1.1.4/index.php
r2177127 r2177131 4 4 * Plugin URI: https://limelighttheme.com/cache-ultra/ 5 5 * Description: Cache Ultra Plugin for Wordpress 6 * Version: 1.1. 36 * Version: 1.1.4 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. 3');19 define('CACHE_ULTRA_VERSION', '1.1.4'); 20 20 21 21 define('CACHE_ULTRA_MODE', 'prod'); … … 57 57 `archive` TEXT, 58 58 `type` VARCHAR(255) DEFAULT 'auto' NOT NULL, 59 `contains` TEXT, 59 60 PRIMARY KEY (id) 60 61 ) $charset_collate;"; … … 71 72 `exclude` tinyint, 72 73 `order` int, 74 `remove` tinyint DEFAULT 0 NOT NULL, 73 75 PRIMARY KEY (id) 74 76 ) $charset_collate;"; … … 77 79 dbDelta( $sql_caches ); 78 80 dbDelta( $sql_resources ); 81 82 $schema = DB_NAME; 83 84 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'contains';" ); 85 if(empty($exists)) { 86 $wpdb->query( " 87 ALTER TABLE $caches_table_name ADD contains TEXT; 88 " ); 89 } 90 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'remove';" ); 91 if(empty($exists)) { 92 $wpdb->query( " 93 ALTER TABLE $resources_table_name ADD remove tinyint DEFAULT 0 NOT NULL; 94 " ); 95 } 96 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'type';" ); 97 if(empty($exists)) { 98 $wpdb->query( " 99 ALTER TABLE $caches_table_name ADD type VARCHAR(255) DEFAULT 'auto' NOT NULL; 100 " ); 101 } 102 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'cache_id';" ); 103 if(empty($exists)) { 104 $wpdb->query( " 105 ALTER TABLE $resources_table_name ADD cache_id bigint; 106 " ); 107 } 108 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'archive';" ); 109 if(empty($exists)) { 110 $wpdb->query( " 111 ALTER TABLE $caches_table_name ADD archive text; 112 " ); 113 } 79 114 } -
cache-ultra/tags/1.1.4/src/Services/Database.php
r2177127 r2177131 25 25 $resources_table_name = $wpdb->prefix . "cu_resources"; 26 26 $charset_collate = $wpdb->get_charset_collate(); 27 $schema = DB_NAME; 27 28 28 29 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 29 30 if($this->version <= '1.1.3'){ 30 $schema = DB_NAME;31 31 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'contains';" ); 32 32 if(empty($exists)) { … … 37 37 } 38 38 if($this->version <= '1.0.8'){ 39 $schema = DB_NAME;40 39 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'remove';" ); 41 40 if(empty($exists)) { … … 46 45 } 47 46 if($this->version <= '1.0.0'){ 48 $schema = DB_NAME;49 47 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'type';" ); 50 48 if(empty($exists)) { … … 53 51 " ); 54 52 } 55 $schema = DB_NAME;56 53 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'cache_id';" ); 57 54 if(empty($exists)) { -
cache-ultra/trunk/README.md
r2177127 r2177131 8 8 Author: Limelight Department 9 9 Tested up to: 5.2.3 10 Stable tag: "1.1. 3"11 Version 1.1. 310 Stable tag: "1.1.4" 11 Version 1.1.4 12 12 License: GPLv2 or later 13 13 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 48 48 == Changelog == 49 49 50 1.1.4 51 - Modified the activation code to match current DB specs. 50 52 1.1.3 51 53 - Fixed issues with decoding certain base64 resource data. -
cache-ultra/trunk/index.php
r2177127 r2177131 4 4 * Plugin URI: https://limelighttheme.com/cache-ultra/ 5 5 * Description: Cache Ultra Plugin for Wordpress 6 * Version: 1.1. 36 * Version: 1.1.4 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. 3');19 define('CACHE_ULTRA_VERSION', '1.1.4'); 20 20 21 21 define('CACHE_ULTRA_MODE', 'prod'); … … 57 57 `archive` TEXT, 58 58 `type` VARCHAR(255) DEFAULT 'auto' NOT NULL, 59 `contains` TEXT, 59 60 PRIMARY KEY (id) 60 61 ) $charset_collate;"; … … 71 72 `exclude` tinyint, 72 73 `order` int, 74 `remove` tinyint DEFAULT 0 NOT NULL, 73 75 PRIMARY KEY (id) 74 76 ) $charset_collate;"; … … 77 79 dbDelta( $sql_caches ); 78 80 dbDelta( $sql_resources ); 81 82 $schema = DB_NAME; 83 84 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'contains';" ); 85 if(empty($exists)) { 86 $wpdb->query( " 87 ALTER TABLE $caches_table_name ADD contains TEXT; 88 " ); 89 } 90 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'remove';" ); 91 if(empty($exists)) { 92 $wpdb->query( " 93 ALTER TABLE $resources_table_name ADD remove tinyint DEFAULT 0 NOT NULL; 94 " ); 95 } 96 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'type';" ); 97 if(empty($exists)) { 98 $wpdb->query( " 99 ALTER TABLE $caches_table_name ADD type VARCHAR(255) DEFAULT 'auto' NOT NULL; 100 " ); 101 } 102 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'cache_id';" ); 103 if(empty($exists)) { 104 $wpdb->query( " 105 ALTER TABLE $resources_table_name ADD cache_id bigint; 106 " ); 107 } 108 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'archive';" ); 109 if(empty($exists)) { 110 $wpdb->query( " 111 ALTER TABLE $caches_table_name ADD archive text; 112 " ); 113 } 79 114 } -
cache-ultra/trunk/src/Services/Database.php
r2177127 r2177131 25 25 $resources_table_name = $wpdb->prefix . "cu_resources"; 26 26 $charset_collate = $wpdb->get_charset_collate(); 27 $schema = DB_NAME; 27 28 28 29 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 29 30 if($this->version <= '1.1.3'){ 30 $schema = DB_NAME;31 31 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'contains';" ); 32 32 if(empty($exists)) { … … 37 37 } 38 38 if($this->version <= '1.0.8'){ 39 $schema = DB_NAME;40 39 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'remove';" ); 41 40 if(empty($exists)) { … … 46 45 } 47 46 if($this->version <= '1.0.0'){ 48 $schema = DB_NAME;49 47 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'type';" ); 50 48 if(empty($exists)) { … … 53 51 " ); 54 52 } 55 $schema = DB_NAME;56 53 $exists = $wpdb->get_results( "SELECT * FROM information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'cache_id';" ); 57 54 if(empty($exists)) {
Note: See TracChangeset
for help on using the changeset viewer.