Plugin Directory

Changeset 3269130


Ignore:
Timestamp:
04/08/2025 06:49:05 PM (8 months ago)
Author:
LiteSpeedTech
Message:

Release v7.0.1

Location:
litespeed-cache
Files:
340 added
5 edited

Legend:

Unmodified
Added
Removed
  • litespeed-cache/trunk/litespeed-cache.php

    r3262418 r3269130  
    55 * Plugin URI:        https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
    66 * Description:       High-performance page caching and site optimization from LiteSpeed
    7  * Version:           7.0.0.1
     7 * Version:           7.0.1
    88 * Author:            LiteSpeed Technologies
    99 * Author URI:        https://www.litespeedtech.com
     
    1313 * Domain Path:       /lang
    1414 *
    15  * Copyright (C) 2015-2024 LiteSpeed Technologies, Inc.
     15 * Copyright (C) 2015-2025 LiteSpeed Technologies, Inc.
    1616 *
    1717 * This program is free software: you can redistribute it and/or modify
     
    3535}
    3636
    37 !defined('LSCWP_V') && define('LSCWP_V', '7.0.0.1');
     37!defined('LSCWP_V') && define('LSCWP_V', '7.0.1');
    3838
    3939!defined('LSCWP_CONTENT_DIR') && define('LSCWP_CONTENT_DIR', WP_CONTENT_DIR);
  • litespeed-cache/trunk/readme.txt

    r3262418 r3269130  
    55Requires PHP: 7.2
    66Tested up to: 6.7
    7 Stable tag: 7.0.0.1
     7Stable tag: 7.0.1
    88License: GPLv3
    99License URI: http://www.gnu.org/licenses/gpl.html
     
    255255
    256256== Changelog ==
     257
     258= 7.0.1 - Apr 8 2025 =
     259* **Page Optimize** Migrate legacy data to append trailing slash for better compatibility with v7.0-optimized UCSS/CCSS data.
    257260
    258261= 7.0.0.1 - Mar 26 2025 =
  • litespeed-cache/trunk/src/data.cls.php

    r3261732 r3269130  
    2626        '5.3-a5' => array('litespeed_update_5_3'),
    2727        '7.0-b26' => array('litespeed_update_7'),
     28        '7.0.1-b1' => array('litespeed_update_7_0_1'),
    2829    );
    2930
  • litespeed-cache/trunk/src/data.upgrade.func.php

    r3261732 r3269130  
    1515use LiteSpeed\File;
    1616use LiteSpeed\Cloud;
     17
     18/**
     19 * Migrate v7.0- url_files URL from no trailing slash to trailing slash
     20 * @since 7.0.1
     21 */
     22function litespeed_update_7_0_1()
     23{
     24    global $wpdb;
     25    Debug2::debug('[Data] v7.0.1 upgrade started');
     26
     27    $tb_url = $wpdb->prefix . 'litespeed_url';
     28    $tb_exists = $wpdb->get_var("SHOW TABLES LIKE '" . $tb_url . "'");
     29    if (!$tb_exists) {
     30        Debug2::debug('[Data] Table `litespeed_url` not found, bypassed migration');
     31        return;
     32    }
     33
     34    $q = "SELECT * FROM `$tb_url` WHERE url LIKE 'https://%/'";
     35    $q = $wpdb->prepare($q);
     36    $list = $wpdb->get_results($q, ARRAY_A);
     37    $existing_urls = array();
     38    if ($list) {
     39        foreach ($list as $v) {
     40            $existing_urls[] = $v['url'];
     41        }
     42    }
     43
     44    $q = "SELECT * FROM `$tb_url` WHERE url LIKE 'https://%'";
     45    $q = $wpdb->prepare($q);
     46    $list = $wpdb->get_results($q, ARRAY_A);
     47    if (!$list) {
     48        return;
     49    }
     50    foreach ($list as $v) {
     51        if (substr($v['url'], -1) == '/') {
     52            continue;
     53        }
     54        $new_url = $v['url'] . '/';
     55        if (in_array($new_url, $existing_urls)) {
     56            continue;
     57        }
     58        $q = "UPDATE `$tb_url` SET url = %s WHERE id = %d";
     59        $q = $wpdb->prepare($q, $new_url, $v['id']);
     60        $wpdb->query($q);
     61    }
     62}
    1763
    1864/**
  • litespeed-cache/trunk/tpl/toolbox/beta_test.tpl.php

    r3262418 r3269130  
    77// Existing public version list
    88$v_list = array(
     9    '7.0.1',
    910    '7.0.0.1',
    1011    '6.5.4',
Note: See TracChangeset for help on using the changeset viewer.