Plugin Directory

Changeset 3127657


Ignore:
Timestamp:
07/29/2024 06:31:55 PM (17 months ago)
Author:
LiteSpeedTech
Message:

Release v6.3.0.1

Location:
litespeed-cache
Files:
338 added
6 edited

Legend:

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

    r3123399 r3127657  
    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:           6.3
     7 * Version:           6.3.0.1
    88 * Author:            LiteSpeed Technologies
    99 * Author URI:        https://www.litespeedtech.com
     
    3535}
    3636
    37 !defined('LSCWP_V') && define('LSCWP_V', '6.3');
     37!defined('LSCWP_V') && define('LSCWP_V', '6.3.0.1');
    3838
    3939!defined('LSCWP_CONTENT_DIR') && define('LSCWP_CONTENT_DIR', WP_CONTENT_DIR);
  • litespeed-cache/trunk/readme.txt

    r3123399 r3127657  
    44Requires at least: 4.0
    55Tested up to: 6.6
    6 Stable tag: 6.3
     6Stable tag: 6.3.0.1
    77License: GPLv3
    88License URI: http://www.gnu.org/licenses/gpl.html
     
    251251== Changelog ==
    252252
     253= 6.3.0.1 - Jul 29 2024 =
     254* 🔥🐞**Rest** Disabled WP default Editor cache for REST requests to fix editor errors. (Shivam)
     255* **Cache** Supported `cache_nocacheable.txt` predefined settings.
     256
    253257= 6.3 - Jul 22 2024 =
    254258* 🌱**Page Optimize** HTML Keep Comments: When minifying HTML do not discard comments that match a specified pattern. (#328853)
  • litespeed-cache/trunk/src/control.cls.php

    r3123399 r3127657  
    835835        if (!self::is_forced_cacheable()) {
    836836            // Check if URI is excluded from cache
    837             $excludes = $this->conf(Base::O_CACHE_EXC);
     837            $excludes = $this->cls('Data')->load_cache_nocacheable($this->conf(Base::O_CACHE_EXC));
    838838            $result = Utility::str_hit_array($_SERVER['REQUEST_URI'], $excludes);
    839839            if ($result) {
  • litespeed-cache/trunk/src/data.cls.php

    r3123399 r3127657  
    721721
    722722    /**
     723     * Get list from `data/cache_nocacheable.txt`
     724     *
     725     * @since  6.3.0.1
     726     */
     727    public function load_cache_nocacheable($list)
     728    {
     729        $data = $this->_load_per_line('cache_nocacheable.txt');
     730        if ($data) {
     731            $list = array_unique(array_filter(array_merge($list, $data)));
     732        }
     733
     734        return $list;
     735    }
     736
     737    /**
    723738     * Load file per line
    724739     *
  • litespeed-cache/trunk/tpl/cache/settings-excludes.tpl.php

    r2524344 r3127657  
    11<?php
     2
    23namespace LiteSpeed;
    3 defined( 'WPINC' ) || exit;
     4
     5defined('WPINC') || exit;
    46?>
    57
    68<h3 class="litespeed-title-short">
    7     <?php echo __( 'Exclude Settings', 'litespeed-cache' ); ?>
    8     <?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/cache/#excludes-tab' ); ?>
     9    <?php echo __('Exclude Settings', 'litespeed-cache'); ?>
     10    <?php Doc::learn_more('https://docs.litespeedtech.com/lscache/lscwp/cache/#excludes-tab'); ?>
    911</h3>
    1012
    11 <table class="wp-list-table striped litespeed-table"><tbody>
     13<table class="wp-list-table striped litespeed-table">
     14    <tbody>
    1215
    13     <tr>
    14         <th>
    15             <?php $id = Base::O_CACHE_EXC; ?>
    16             <?php $this->title( $id ); ?>
    17         </th>
    18         <td>
    19             <?php $this->build_textarea( $id ); ?>
    20             <div class="litespeed-desc">
    21                 <?php echo __( 'Paths containing these strings will not be cached.', 'litespeed-cache' ); ?>
    22                 <?php $this->_uri_usage_example(); ?>
    23             </div>
    24         </td>
    25     </tr>
     16        <tr>
     17            <th>
     18                <?php $id = Base::O_CACHE_EXC; ?>
     19                <?php $this->title($id); ?>
     20            </th>
     21            <td>
     22                <?php $this->build_textarea($id); ?>
     23                <div class="litespeed-desc">
     24                    <?php echo __('Paths containing these strings will not be cached.', 'litespeed-cache'); ?>
     25                    <?php $this->_uri_usage_example(); ?>
     26                    <br /><?php echo __('Predefined list will also be combined w/ the above settings', 'litespeed-cache'); ?>: <a href="https://github.com/litespeedtech/lscache_wp/blob/dev/data/cache_nocacheable.txt" target="_blank">https://github.com/litespeedtech/lscache_wp/blob/dev/data/cache_nocacheable.txt</a>
     27                </div>
     28            </td>
     29        </tr>
    2630
    27     <tr>
    28         <th>
    29             <?php $id = Base::O_CACHE_EXC_QS; ?>
    30             <?php $this->title( $id ); ?>
    31         </th>
    32         <td>
    33             <?php $this->build_textarea( $id ); ?>
    34             <div class="litespeed-desc">
    35                 <?php echo __( 'Query strings containing these parameters will not be cached.', 'litespeed-cache' ); ?>
    36                 <?php echo sprintf( __( 'For example, for %s, %s and %s can be used here.', 'litespeed-cache' ), '<code>?aa=bb&cc=dd</code>', '<code>aa</code>', '<code>cc</code>' ); ?>
    37                 <?php Doc::one_per_line(); ?>
    38             </div>
    39         </td>
    40     </tr>
     31        <tr>
     32            <th>
     33                <?php $id = Base::O_CACHE_EXC_QS; ?>
     34                <?php $this->title($id); ?>
     35            </th>
     36            <td>
     37                <?php $this->build_textarea($id); ?>
     38                <div class="litespeed-desc">
     39                    <?php echo __('Query strings containing these parameters will not be cached.', 'litespeed-cache'); ?>
     40                    <?php echo sprintf(__('For example, for %s, %s and %s can be used here.', 'litespeed-cache'), '<code>?aa=bb&cc=dd</code>', '<code>aa</code>', '<code>cc</code>'); ?>
     41                    <?php Doc::one_per_line(); ?>
     42                </div>
     43            </td>
     44        </tr>
    4145
    42     <tr>
    43         <th>
    44             <?php $id = Base::O_CACHE_EXC_CAT; ?>
    45             <?php $this->title( $id ); ?>
    46         </th>
    47         <td>
    48             <?php
     46        <tr>
     47            <th>
     48                <?php $id = Base::O_CACHE_EXC_CAT; ?>
     49                <?php $this->title($id); ?>
     50            </th>
     51            <td>
     52                <?php
    4953                $excludes_buf = '';
    50                 if ( $this->conf( $id ) ) {
    51                     $excludes_buf = implode( "\n", array_map( 'get_cat_name', $this->conf( $id ) ) );
     54                if ($this->conf($id)) {
     55                    $excludes_buf = implode("\n", array_map('get_cat_name', $this->conf($id)));
    5256                }
    53                 $this->build_textarea( $id, false, $excludes_buf );
    54             ?>
    55             <div class="litespeed-desc">
    56                 <b><?php echo __( 'All categories are cached by default.', 'litespeed-cache' ); ?></b>
    57                 <?php echo sprintf( __( 'To prevent %s from being cached, enter them here.', 'litespeed-cache' ), __( 'categories', 'litespeed-cache') ); ?>
    58                 <?php Doc::one_per_line(); ?>
    59             </div>
    60             <div class="litespeed-callout notice notice-warning inline">
    61                 <h4><?php echo __( 'NOTE', 'litespeed-cache' ); ?>:</h4>
    62                 <ol>
    63                     <li><?php echo __( 'If the category name is not found, the category will be removed from the list on save.', 'litespeed-cache' ); ?></li>
    64                 </ol>
    65             </div>
    66         </td>
    67     </tr>
     57                $this->build_textarea($id, false, $excludes_buf);
     58                ?>
     59                <div class="litespeed-desc">
     60                    <b><?php echo __('All categories are cached by default.', 'litespeed-cache'); ?></b>
     61                    <?php echo sprintf(__('To prevent %s from being cached, enter them here.', 'litespeed-cache'), __('categories', 'litespeed-cache')); ?>
     62                    <?php Doc::one_per_line(); ?>
     63                </div>
     64                <div class="litespeed-callout notice notice-warning inline">
     65                    <h4><?php echo __('NOTE', 'litespeed-cache'); ?>:</h4>
     66                    <ol>
     67                        <li><?php echo __('If the category name is not found, the category will be removed from the list on save.', 'litespeed-cache'); ?></li>
     68                    </ol>
     69                </div>
     70            </td>
     71        </tr>
    6872
    69     <tr>
    70         <th>
    71             <?php $id = Base::O_CACHE_EXC_TAG; ?>
    72             <?php $this->title( $id ); ?>
    73         </th>
    74         <td>
    75             <?php
     73        <tr>
     74            <th>
     75                <?php $id = Base::O_CACHE_EXC_TAG; ?>
     76                <?php $this->title($id); ?>
     77            </th>
     78            <td>
     79                <?php
    7680                $excludes_buf = '';
    77                 if ( $this->conf( $id ) ) {
     81                if ($this->conf($id)) {
    7882                    $tag_names = array();
    79                     foreach ( array_map( 'get_tag', $this->conf( $id ) ) as $tag ) {
     83                    foreach (array_map('get_tag', $this->conf($id)) as $tag) {
    8084                        $tag_names[] = $tag->name;
    8185                    }
    82                     if ( ! empty( $tag_names ) ) {
    83                         $excludes_buf = implode( "\n", $tag_names );
     86                    if (!empty($tag_names)) {
     87                        $excludes_buf = implode("\n", $tag_names);
    8488                    }
    8589                }
    86                 $this->build_textarea( $id, false, $excludes_buf );
    87             ?>
    88             <div class="litespeed-desc">
    89                 <b><?php echo __( 'All tags are cached by default.', 'litespeed-cache' ); ?></b>
    90                 <?php echo sprintf( __( 'To prevent %s from being cached, enter them here.', 'litespeed-cache' ), __( 'tags', 'litespeed-cache') ); ?>
    91                 <?php Doc::one_per_line(); ?>
    92             </div>
    93             <div class="litespeed-callout notice notice-warning inline">
    94                 <h4><?php echo __( 'NOTE', 'litespeed-cache' ); ?>:</h4>
    95                 <ol>
    96                     <li><?php echo __( 'If the tag slug is not found, the tag will be removed from the list on save.', 'litespeed-cache' ); ?></li>
    97                     <li><?php echo sprintf( __( 'To exclude %1$s, insert %2$s.', 'litespeed-cache' ),
    98                             '<code>http://www.example.com/tag/category/tag-slug/</code>',
    99                             '<code>tag-slug</code>' ); ?></li>
    100                 </ol>
    101             </div>
    102         </td>
    103     </tr>
     90                $this->build_textarea($id, false, $excludes_buf);
     91                ?>
     92                <div class="litespeed-desc">
     93                    <b><?php echo __('All tags are cached by default.', 'litespeed-cache'); ?></b>
     94                    <?php echo sprintf(__('To prevent %s from being cached, enter them here.', 'litespeed-cache'), __('tags', 'litespeed-cache')); ?>
     95                    <?php Doc::one_per_line(); ?>
     96                </div>
     97                <div class="litespeed-callout notice notice-warning inline">
     98                    <h4><?php echo __('NOTE', 'litespeed-cache'); ?>:</h4>
     99                    <ol>
     100                        <li><?php echo __('If the tag slug is not found, the tag will be removed from the list on save.', 'litespeed-cache'); ?></li>
     101                        <li><?php echo sprintf(
     102                                __('To exclude %1$s, insert %2$s.', 'litespeed-cache'),
     103                                '<code>http://www.example.com/tag/category/tag-slug/</code>',
     104                                '<code>tag-slug</code>'
     105                            ); ?></li>
     106                    </ol>
     107                </div>
     108            </td>
     109        </tr>
    104110
    105     <?php
    106         if ( ! $this->_is_multisite ) :
     111        <?php
     112        if (!$this->_is_multisite) :
    107113            // Cookie
    108114            require LSCWP_DIR . 'tpl/cache/settings_inc.exclude_cookies.tpl.php';
     
    112118
    113119        endif;
    114     ?>
     120        ?>
    115121
    116     <tr>
    117         <th>
    118             <?php $id = Base::O_CACHE_EXC_ROLES; ?>
    119             <?php $this->title( $id ); ?>
    120         </th>
    121         <td>
    122             <div class="litespeed-desc">
    123                 <?php echo __( 'Selected roles will be excluded from cache.', 'litespeed-cache' ); ?>
    124             </div>
    125             <div class="litespeed-tick-list">
    126                 <?php foreach ( $roles as $role => $title ): ?>
    127                     <?php $this->build_checkbox( $id . '[]', $title, Control::cls()->in_cache_exc_roles( $role ), $role ); ?>
    128                 <?php endforeach; ?>
    129             </div>
     122        <tr>
     123            <th>
     124                <?php $id = Base::O_CACHE_EXC_ROLES; ?>
     125                <?php $this->title($id); ?>
     126            </th>
     127            <td>
     128                <div class="litespeed-desc">
     129                    <?php echo __('Selected roles will be excluded from cache.', 'litespeed-cache'); ?>
     130                </div>
     131                <div class="litespeed-tick-list">
     132                    <?php foreach ($roles as $role => $title) : ?>
     133                        <?php $this->build_checkbox($id . '[]', $title, Control::cls()->in_cache_exc_roles($role), $role); ?>
     134                    <?php endforeach; ?>
     135                </div>
    130136
    131         </td>
    132     </tr>
     137            </td>
     138        </tr>
    133139
    134 </tbody></table>
     140    </tbody>
     141</table>
  • litespeed-cache/trunk/tpl/toolbox/beta_test.tpl.php

    r3123399 r3127657  
    77// Existing public version list
    88$v_list = array(
    9     '6.3',
     9    '6.3.0.1',
    1010    '6.2.0.1',
    1111    '6.1',
Note: See TracChangeset for help on using the changeset viewer.