Plugin Directory

Changeset 2177131


Ignore:
Timestamp:
10/21/2019 06:26:07 PM (6 years ago)
Author:
limelightdept
Message:

tagging version 1.1.4

Location:
cache-ultra
Files:
1 deleted
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • cache-ultra/tags/1.1.4/README.md

    r2177127 r2177131  
    88Author: Limelight Department
    99Tested up to: 5.2.3
    10 Stable tag: "1.1.3"
    11 Version 1.1.3
     10Stable tag: "1.1.4"
     11Version 1.1.4
    1212License: GPLv2 or later
    1313License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848== Changelog ==
    4949
     501.1.4
     51- Modified the activation code to match current DB specs.
    50521.1.3
    5153- Fixed issues with decoding certain base64 resource data.
  • cache-ultra/tags/1.1.4/index.php

    r2177127 r2177131  
    44 * Plugin URI:        https://limelighttheme.com/cache-ultra/
    55 * Description:       Cache Ultra Plugin for Wordpress
    6  * Version:           1.1.3
     6 * Version:           1.1.4
    77 * Author:            Limelight Department
    88 * Author URI:        https://limelighttheme.com/
     
    1717define('CACHE_ULTRA_DIR', __DIR__);
    1818
    19 define('CACHE_ULTRA_VERSION', '1.1.3');
     19define('CACHE_ULTRA_VERSION', '1.1.4');
    2020
    2121define('CACHE_ULTRA_MODE', 'prod');
     
    5757      `archive` TEXT,
    5858      `type` VARCHAR(255) DEFAULT 'auto' NOT NULL,
     59      `contains` TEXT,
    5960      PRIMARY KEY  (id)
    6061    ) $charset_collate;";
     
    7172        `exclude` tinyint,
    7273        `order` int,
     74        `remove` tinyint DEFAULT 0 NOT NULL,
    7375        PRIMARY KEY  (id)
    7476      ) $charset_collate;";
     
    7779    dbDelta( $sql_caches );
    7880    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    }
    79114}
  • cache-ultra/tags/1.1.4/src/Services/Database.php

    r2177127 r2177131  
    2525        $resources_table_name = $wpdb->prefix . "cu_resources";
    2626        $charset_collate = $wpdb->get_charset_collate();
     27        $schema  = DB_NAME;
    2728
    2829        require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
    2930        if($this->version <= '1.1.3'){
    30             $schema  = DB_NAME;
    3131            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'contains';" );
    3232            if(empty($exists)) {
     
    3737        }
    3838        if($this->version <= '1.0.8'){
    39             $schema  = DB_NAME;
    4039            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'remove';" );
    4140            if(empty($exists)) {
     
    4645        }
    4746        if($this->version <= '1.0.0'){
    48             $schema  = DB_NAME;
    4947            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'type';" );
    5048            if(empty($exists)) {
     
    5351                " );
    5452            }
    55             $schema  = DB_NAME;
    5653            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'cache_id';" );
    5754            if(empty($exists)) {
  • cache-ultra/trunk/README.md

    r2177127 r2177131  
    88Author: Limelight Department
    99Tested up to: 5.2.3
    10 Stable tag: "1.1.3"
    11 Version 1.1.3
     10Stable tag: "1.1.4"
     11Version 1.1.4
    1212License: GPLv2 or later
    1313License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4848== Changelog ==
    4949
     501.1.4
     51- Modified the activation code to match current DB specs.
    50521.1.3
    5153- Fixed issues with decoding certain base64 resource data.
  • cache-ultra/trunk/index.php

    r2177127 r2177131  
    44 * Plugin URI:        https://limelighttheme.com/cache-ultra/
    55 * Description:       Cache Ultra Plugin for Wordpress
    6  * Version:           1.1.3
     6 * Version:           1.1.4
    77 * Author:            Limelight Department
    88 * Author URI:        https://limelighttheme.com/
     
    1717define('CACHE_ULTRA_DIR', __DIR__);
    1818
    19 define('CACHE_ULTRA_VERSION', '1.1.3');
     19define('CACHE_ULTRA_VERSION', '1.1.4');
    2020
    2121define('CACHE_ULTRA_MODE', 'prod');
     
    5757      `archive` TEXT,
    5858      `type` VARCHAR(255) DEFAULT 'auto' NOT NULL,
     59      `contains` TEXT,
    5960      PRIMARY KEY  (id)
    6061    ) $charset_collate;";
     
    7172        `exclude` tinyint,
    7273        `order` int,
     74        `remove` tinyint DEFAULT 0 NOT NULL,
    7375        PRIMARY KEY  (id)
    7476      ) $charset_collate;";
     
    7779    dbDelta( $sql_caches );
    7880    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    }
    79114}
  • cache-ultra/trunk/src/Services/Database.php

    r2177127 r2177131  
    2525        $resources_table_name = $wpdb->prefix . "cu_resources";
    2626        $charset_collate = $wpdb->get_charset_collate();
     27        $schema  = DB_NAME;
    2728
    2829        require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
    2930        if($this->version <= '1.1.3'){
    30             $schema  = DB_NAME;
    3131            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'contains';" );
    3232            if(empty($exists)) {
     
    3737        }
    3838        if($this->version <= '1.0.8'){
    39             $schema  = DB_NAME;
    4039            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'remove';" );
    4140            if(empty($exists)) {
     
    4645        }
    4746        if($this->version <= '1.0.0'){
    48             $schema  = DB_NAME;
    4947            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'type';" );
    5048            if(empty($exists)) {
     
    5351                " );
    5452            }
    55             $schema  = DB_NAME;
    5653            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'cache_id';" );
    5754            if(empty($exists)) {
Note: See TracChangeset for help on using the changeset viewer.