Plugin Directory

Changeset 2177881


Ignore:
Timestamp:
10/22/2019 10:37:59 PM (6 years ago)
Author:
limelightdept
Message:

tagging version 1.1.9

Location:
cache-ultra
Files:
8 edited
1 copied

Legend:

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

    r2177853 r2177881  
    88Author: Limelight Department
    99Tested up to: 5.2.3
    10 Stable tag: "1.1.8"
    11 Version 1.1.8
     10Stable tag: "1.1.9"
     11Version 1.1.9
    1212License: GPLv2 or later
    1313License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • cache-ultra/tags/1.1.9/index.php

    r2177853 r2177881  
    44 * Plugin URI:        https://limelighttheme.com/cache-ultra/
    55 * Description:       Cache Ultra Plugin for Wordpress
    6  * Version:           1.1.8
     6 * Version:           1.1.9
    77 * Author:            Limelight Department
    88 * Author URI:        https://limelighttheme.com/
     
    1717define('CACHE_ULTRA_DIR', __DIR__);
    1818
    19 define('CACHE_ULTRA_VERSION', '1.1.8');
     19define('CACHE_ULTRA_VERSION', '1.1.9');
    2020
    2121define('CACHE_ULTRA_MODE', 'prod');
  • cache-ultra/tags/1.1.9/src/Services/Cache.php

    r2177743 r2177881  
    5252    public function CheckCaches() {
    5353        $caches = CacheModel::getEnabled();
     54        $messages = [];
    5455        foreach($caches AS $cache) {
    5556
    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            }
    5761            $timestamp = time();
    5862            $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            }
    6167            ResourceService::getInstance()->process($cache,['javascript','css'],$cache['timestamp']);
    6268            //$this->processCache($cache);
  • cache-ultra/tags/1.1.9/src/Services/Database.php

    r2177853 r2177881  
    2828
    2929        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){
    3131            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'dom_index';" );
    3232            if(empty($exists)) {
     
    3636            }
    3737        }
    38         if($this->version <= '1.1.3'){
     38        if(version_compare($this->version, "1.1.3") <= 0){
    3939            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'contains';" );
    4040            if(empty($exists)) {
     
    4444            }
    4545        }
    46         if($this->version <= '1.0.8'){
     46        if(version_compare($this->version, "1.0.8") <= 0){
    4747            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'remove';" );
    4848            if(empty($exists)) {
     
    5252            }
    5353        }
    54         if($this->version <= '1.0.0'){
     54        if(version_compare($this->version, "1.0.0") <= 0){
    5555            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'type';" );
    5656            if(empty($exists)) {
  • cache-ultra/trunk/README.md

    r2177853 r2177881  
    88Author: Limelight Department
    99Tested up to: 5.2.3
    10 Stable tag: "1.1.8"
    11 Version 1.1.8
     10Stable tag: "1.1.9"
     11Version 1.1.9
    1212License: GPLv2 or later
    1313License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • cache-ultra/trunk/index.php

    r2177853 r2177881  
    44 * Plugin URI:        https://limelighttheme.com/cache-ultra/
    55 * Description:       Cache Ultra Plugin for Wordpress
    6  * Version:           1.1.8
     6 * Version:           1.1.9
    77 * Author:            Limelight Department
    88 * Author URI:        https://limelighttheme.com/
     
    1717define('CACHE_ULTRA_DIR', __DIR__);
    1818
    19 define('CACHE_ULTRA_VERSION', '1.1.8');
     19define('CACHE_ULTRA_VERSION', '1.1.9');
    2020
    2121define('CACHE_ULTRA_MODE', 'prod');
  • cache-ultra/trunk/src/Services/Cache.php

    r2177743 r2177881  
    5252    public function CheckCaches() {
    5353        $caches = CacheModel::getEnabled();
     54        $messages = [];
    5455        foreach($caches AS $cache) {
    5556
    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            }
    5761            $timestamp = time();
    5862            $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            }
    6167            ResourceService::getInstance()->process($cache,['javascript','css'],$cache['timestamp']);
    6268            //$this->processCache($cache);
  • cache-ultra/trunk/src/Services/Database.php

    r2177853 r2177881  
    2828
    2929        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){
    3131            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'dom_index';" );
    3232            if(empty($exists)) {
     
    3636            }
    3737        }
    38         if($this->version <= '1.1.3'){
     38        if(version_compare($this->version, "1.1.3") <= 0){
    3939            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'contains';" );
    4040            if(empty($exists)) {
     
    4444            }
    4545        }
    46         if($this->version <= '1.0.8'){
     46        if(version_compare($this->version, "1.0.8") <= 0){
    4747            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$resources_table_name' AND COLUMN_NAME = 'remove';" );
    4848            if(empty($exists)) {
     
    5252            }
    5353        }
    54         if($this->version <= '1.0.0'){
     54        if(version_compare($this->version, "1.0.0") <= 0){
    5555            $exists = $wpdb->get_results( "SELECT * FROM  information_schema.COLUMNS WHERE TABLE_SCHEMA = '$schema' AND TABLE_NAME = '$caches_table_name' AND COLUMN_NAME = 'type';" );
    5656            if(empty($exists)) {
Note: See TracChangeset for help on using the changeset viewer.