Skip to content

Replace use of SHOW TABLES with DESCRIBE. #834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
128 changes: 64 additions & 64 deletions lang/litespeed-cache.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GPLv3.
msgid ""
msgstr ""
"Project-Id-Version: LiteSpeed Cache 7.0\n"
"Project-Id-Version: LiteSpeed Cache 7.0.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2025-03-19T21:54:15+00:00\n"
"POT-Creation-Date: 2025-04-08T18:55:51+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.11.0\n"
"X-Domain: litespeed-cache\n"
Expand Down Expand Up @@ -173,9 +173,9 @@ msgid "Add new CDN URL"
msgstr ""

#: src/admin-display.cls.php:244
#: src/admin-display.cls.php:972
#: src/admin-display.cls.php:1000
#: src/admin-display.cls.php:1051
#: src/admin-display.cls.php:978
#: src/admin-display.cls.php:1006
#: src/admin-display.cls.php:1057
#: src/doc.cls.php:41
#: tpl/cache/settings-cache.tpl.php:22
#: tpl/cache/settings_inc.cache_mobile.tpl.php:71
Expand All @@ -188,9 +188,9 @@ msgid "ON"
msgstr ""

#: src/admin-display.cls.php:245
#: src/admin-display.cls.php:973
#: src/admin-display.cls.php:1000
#: src/admin-display.cls.php:1051
#: src/admin-display.cls.php:979
#: src/admin-display.cls.php:1006
#: src/admin-display.cls.php:1057
#: tpl/cache/settings-cache.tpl.php:22
#: tpl/cache/settings_inc.object.tpl.php:213
#: tpl/cdn/other.tpl.php:39
Expand All @@ -208,82 +208,82 @@ msgstr ""
msgid "Settings"
msgstr ""

#: src/admin-display.cls.php:526
#: src/admin-display.cls.php:532
#: tpl/banner/slack.php:33
msgid "Dismiss"
msgstr ""

#: src/admin-display.cls.php:837
#: src/admin-display.cls.php:841
#: src/admin-display.cls.php:843
#: src/admin-display.cls.php:847
msgid "Save Changes"
msgstr ""

#: src/admin-display.cls.php:1062
#: src/admin-display.cls.php:1068
msgid "This setting is overwritten by the PHP constant %s"
msgstr ""

#: src/admin-display.cls.php:1065
#: src/admin-display.cls.php:1071
msgid "This setting is overwritten by the primary site setting"
msgstr ""

#: src/admin-display.cls.php:1067
#: src/admin-display.cls.php:1073
msgid "This setting is overwritten by the Network setting"
msgstr ""

#: src/admin-display.cls.php:1071
#: src/admin-display.cls.php:1077
msgid "currently set to %s"
msgstr ""

#: src/admin-display.cls.php:1082
#: src/admin-display.cls.php:1088
#: tpl/cache/settings_inc.object.tpl.php:106
#: tpl/crawler/settings.tpl.php:37
#: tpl/esi_widget_edit.php:70
msgid "seconds"
msgstr ""

#: src/admin-display.cls.php:1114
#: src/admin-display.cls.php:1118
#: src/admin-display.cls.php:1120
#: src/admin-display.cls.php:1124
#: tpl/cdn/other.tpl.php:84
msgid "Default value"
msgstr ""

#: src/admin-display.cls.php:1143
#: src/admin-display.cls.php:1149
msgid "Invalid rewrite rule"
msgstr ""

#: src/admin-display.cls.php:1161
#: src/admin-display.cls.php:1167
msgid "Path must end with %s"
msgstr ""

#: src/admin-display.cls.php:1180
#: src/admin-display.cls.php:1186
msgid "Minimum value"
msgstr ""

#: src/admin-display.cls.php:1183
#: src/admin-display.cls.php:1189
msgid "Maximum value"
msgstr ""

#: src/admin-display.cls.php:1195
#: src/admin-display.cls.php:1201
msgid "Zero, or"
msgstr ""

#: src/admin-display.cls.php:1201
#: src/admin-display.cls.php:1207
msgid "Larger than"
msgstr ""

#: src/admin-display.cls.php:1203
#: src/admin-display.cls.php:1209
msgid "Smaller than"
msgstr ""

#: src/admin-display.cls.php:1206
#: src/admin-display.cls.php:1212
msgid "Value range"
msgstr ""

#: src/admin-display.cls.php:1232
#: src/admin-display.cls.php:1238
msgid "Invalid IP"
msgstr ""

#: src/admin-display.cls.php:1253
#: src/admin-display.cls.php:1259
#: tpl/cache/settings-esi.tpl.php:95
#: tpl/page_optm/settings_css.tpl.php:194
#: tpl/page_optm/settings_html.tpl.php:123
Expand All @@ -301,44 +301,44 @@ msgstr ""
msgid "API"
msgstr ""

#: src/admin-display.cls.php:1255
#: src/admin-display.cls.php:1261
msgid "Server variable(s) %s available to override this setting."
msgstr ""

#: src/admin-display.cls.php:1268
#: src/admin-display.cls.php:1274
msgid "The URLs will be compared to the REQUEST_URI server variable."
msgstr ""

#: src/admin-display.cls.php:1269
#: src/admin-display.cls.php:1275
msgid "For example, for %s, %s can be used here."
msgstr ""

#: src/admin-display.cls.php:1271
#: src/admin-display.cls.php:1277
msgid "To match the beginning, add %s to the beginning of the item."
msgstr ""

#: src/admin-display.cls.php:1272
#: src/admin-display.cls.php:1278
msgid "To do an exact match, add %s to the end of the URL."
msgstr ""

#: src/admin-display.cls.php:1273
#: src/admin-display.cls.php:1279
#: src/doc.cls.php:114
msgid "One per line."
msgstr ""

#: src/admin-display.cls.php:1288
#: src/admin-display.cls.php:1294
msgid "%s groups"
msgstr ""

#: src/admin-display.cls.php:1291
#: src/admin-display.cls.php:1297
msgid "%s images"
msgstr ""

#: src/admin-display.cls.php:1300
#: src/admin-display.cls.php:1306
msgid "%s group"
msgstr ""

#: src/admin-display.cls.php:1303
#: src/admin-display.cls.php:1309
msgid "%s image"
msgstr ""

Expand Down Expand Up @@ -526,11 +526,11 @@ msgstr ""
msgid "Sync credit allowance with Cloud Server successfully."
msgstr ""

#: src/conf.cls.php:516
#: src/conf.cls.php:519
msgid "Saving option failed. IPv4 only for %s."
msgstr ""

#: src/conf.cls.php:693
#: src/conf.cls.php:696
msgid "Changed setting successfully."
msgstr ""

Expand Down Expand Up @@ -574,24 +574,24 @@ msgstr ""
msgid "Previously existed in blocklist"
msgstr ""

#: src/data.cls.php:225
#: src/data.cls.php:226
msgid "The database has been upgrading in the background since %s. This message will disappear once upgrade is complete."
msgstr ""

#: src/data.upgrade.func.php:170
#: src/data.upgrade.func.php:216
msgid "LiteSpeed Cache upgraded successfully. NOTE: Due to changes in this version, the settings %1$s and %2$s have been turned OFF. Please turn them back on manually and verify that your site layout is correct, and you have no JS errors."
msgstr ""

#: src/data.upgrade.func.php:174
#: src/data.upgrade.func.php:220
#: src/lang.cls.php:151
msgid "JS Combine"
msgstr ""

#: src/data.upgrade.func.php:175
#: src/data.upgrade.func.php:221
msgid "JS Defer"
msgstr ""

#: src/data.upgrade.func.php:177
#: src/data.upgrade.func.php:223
msgid "Click here to settings"
msgstr ""

Expand Down Expand Up @@ -2195,23 +2195,23 @@ msgstr ""
msgid "Install"
msgstr ""

#: tpl/banner/cloud_promo.tpl.php:13
#: tpl/banner/cloud_promo.tpl.php:14
msgid "You just unlocked a promotion from QUIC.cloud!"
msgstr ""

#: tpl/banner/cloud_promo.tpl.php:17
#: tpl/banner/cloud_promo.tpl.php:18
msgid "Spread the love and earn %s credits to use in our QUIC.cloud online services."
msgstr ""

#: tpl/banner/cloud_promo.tpl.php:24
#: tpl/banner/cloud_promo.tpl.php:25
msgid "Send to twitter to get %s bonus"
msgstr ""

#: tpl/banner/cloud_promo.tpl.php:29
#: tpl/banner/cloud_promo.tpl.php:30
msgid "Learn more"
msgstr ""

#: tpl/banner/cloud_promo.tpl.php:34
#: tpl/banner/cloud_promo.tpl.php:35
msgid "Tweet preview"
msgstr ""

Expand All @@ -2233,7 +2233,7 @@ msgstr ""

#: tpl/banner/new_version.php:71
#: tpl/banner/new_version_dev.tpl.php:24
#: tpl/toolbox/beta_test.tpl.php:62
#: tpl/toolbox/beta_test.tpl.php:63
msgid "Upgrade"
msgstr ""

Expand Down Expand Up @@ -5027,7 +5027,7 @@ msgid "Comments are supported. Start a line with a %s to turn it into a comment
msgstr ""

#: tpl/page_optm/settings_localization.tpl.php:127
#: tpl/toolbox/beta_test.tpl.php:30
#: tpl/toolbox/beta_test.tpl.php:31
msgid "Example"
msgstr ""

Expand Down Expand Up @@ -5495,48 +5495,48 @@ msgstr ""
msgid "Restore Settings"
msgstr ""

#: tpl/toolbox/beta_test.tpl.php:25
#: tpl/toolbox/beta_test.tpl.php:26
msgid "Try GitHub Version"
msgstr ""

#: tpl/toolbox/beta_test.tpl.php:29
#: tpl/toolbox/beta_test.tpl.php:30
msgid "Use this section to switch plugin versions. To beta test a GitHub commit, enter the commit URL in the field below."
msgstr ""

#: tpl/toolbox/beta_test.tpl.php:34
#: tpl/toolbox/beta_test.tpl.php:35
msgid "Use latest GitHub Dev commit"
msgstr ""

#: tpl/toolbox/beta_test.tpl.php:36
#: tpl/toolbox/beta_test.tpl.php:37
msgid "Use latest GitHub Master commit"
msgstr ""

#: tpl/toolbox/beta_test.tpl.php:38
#: tpl/toolbox/beta_test.tpl.php:54
#: tpl/toolbox/beta_test.tpl.php:39
#: tpl/toolbox/beta_test.tpl.php:55
msgid "Use latest WordPress release version"
msgstr ""

#: tpl/toolbox/beta_test.tpl.php:38
#: tpl/toolbox/beta_test.tpl.php:39
msgid "OR"
msgstr ""

#: tpl/toolbox/beta_test.tpl.php:49
#: tpl/toolbox/beta_test.tpl.php:50
msgid "Downgrade not recommended. May cause fatal error due to refactored code."
msgstr ""

#: tpl/toolbox/beta_test.tpl.php:53
#: tpl/toolbox/beta_test.tpl.php:54
msgid "Press the %s button to use the most recent GitHub commit. Master is for release candidate & Dev is for experimental testing."
msgstr ""

#: tpl/toolbox/beta_test.tpl.php:53
#: tpl/toolbox/beta_test.tpl.php:54
msgid "Use latest GitHub Dev/Master commit"
msgstr ""

#: tpl/toolbox/beta_test.tpl.php:54
#: tpl/toolbox/beta_test.tpl.php:55
msgid "Press the %s button to stop beta testing and go back to the current release from the WordPress Plugin Directory."
msgstr ""

#: tpl/toolbox/beta_test.tpl.php:59
#: tpl/toolbox/beta_test.tpl.php:60
msgid "In order to avoid an upgrade error, you must be using %1$s or later before you can upgrade to %2$s versions."
msgstr ""

Expand Down
12 changes: 6 additions & 6 deletions litespeed-cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
* Plugin Name: LiteSpeed Cache
* Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
* Description: High-performance page caching and site optimization from LiteSpeed
* Version: 7.0
* Version: 7.0.1
* Author: LiteSpeed Technologies
* Author URI: https://www.litespeedtech.com
* License: GPLv3
* License URI: http://www.gnu.org/licenses/gpl.html
* Text Domain: litespeed-cache
* Domain Path: /lang
*
* Copyright (C) 2015-2024 LiteSpeed Technologies, Inc.
* Copyright (C) 2015-2025 LiteSpeed Technologies, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand All @@ -34,7 +34,7 @@
return;
}

!defined('LSCWP_V') && define('LSCWP_V', '7.0');
!defined('LSCWP_V') && define('LSCWP_V', '7.0.1');

!defined('LSCWP_CONTENT_DIR') && define('LSCWP_CONTENT_DIR', WP_CONTENT_DIR);
!defined('LSCWP_DIR') && define('LSCWP_DIR', __DIR__ . '/'); // Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU
Expand All @@ -46,11 +46,11 @@
* @since 5.2 Auto correct protocol for CONTENT URL
*/
$WP_CONTENT_URL = WP_CONTENT_URL;
$home_url = home_url('/');
if (substr($WP_CONTENT_URL, 0, 5) == 'http:' && substr($home_url, 0, 5) == 'https') {
$site_url = site_url('/');
if (substr($WP_CONTENT_URL, 0, 5) == 'http:' && substr($site_url, 0, 5) == 'https') {
$WP_CONTENT_URL = str_replace('http://', 'https://', $WP_CONTENT_URL);
}
!defined('LSCWP_CONTENT_FOLDER') && define('LSCWP_CONTENT_FOLDER', str_replace($home_url, '', $WP_CONTENT_URL)); // `wp-content`
!defined('LSCWP_CONTENT_FOLDER') && define('LSCWP_CONTENT_FOLDER', str_replace($site_url, '', $WP_CONTENT_URL)); // `wp-content`
!defined('LSWCP_PLUGIN_URL') && define('LSWCP_PLUGIN_URL', plugin_dir_url(__FILE__)); // Full URL path '//example.com/wp-content/plugins/litespeed-cache/'

/**
Expand Down
Loading