Version Description
- Oct 27 2020 =
-
CSS
CSS Combine
is now compatible w/ inline noscript CSS. (@galbaras) - GUI Added ability to manually dismiss the JS option reset message in v3.5.1 upgrade process. (#473917)
-
CSS
CSS Excludes
setting will no longer lose items beginning w/#
. (@ankit) -
API New
litespeed_media_reset
API function for image editing purposes. (@Andro)
Download this release
Release Info
Developer | LiteSpeedTech |
Plugin | LiteSpeed Cache |
Version | 3.5.2 |
Comparing to | |
See all releases |
Code changes from version 3.5.1 to 3.5.2
- lang/litespeed-cache.pot +173 -142
- litespeed-cache.php +2 -2
- readme.txt +8 -2
- src/admin-display.cls.php +73 -20
- src/api.cls.php +5 -0
- src/base.cls.php +3 -3
- src/data.upgrade.func.php +9 -0
- src/gui.cls.php +6 -1
- src/media.cls.php +2 -2
- src/optimize.cls.php +1 -1
- tpl/page_optm/entry.tpl.php +3 -3
- tpl/page_optm/settings_css.tpl.php +2 -1
lang/litespeed-cache.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the LiteSpeed Cache package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: LiteSpeed Cache 3.5.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
|
7 |
-
"POT-Creation-Date: 2020-10-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -36,144 +36,148 @@ msgstr ""
|
|
36 |
msgid "Upgraded successfully."
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: src/admin-display.cls.php:
|
40 |
msgid "Dashboard"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: src/admin-display.cls.php:
|
44 |
msgid "General"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: src/admin-display.cls.php:
|
48 |
#: tpl/cache/entry_network.tpl.php:6
|
49 |
msgid "Cache"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: src/admin-display.cls.php:
|
53 |
msgid "CDN"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: src/admin-display.cls.php:
|
57 |
#: tpl/dash/dashboard.tpl.php:52 tpl/dash/network_dash.tpl.php:27
|
58 |
msgid "Image Optimization"
|
59 |
msgstr ""
|
60 |
|
61 |
-
#: src/admin-display.cls.php:
|
62 |
msgid "Page Optimization"
|
63 |
msgstr ""
|
64 |
|
65 |
-
#: src/admin-display.cls.php:
|
66 |
msgid "Database"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: src/admin-display.cls.php:
|
70 |
msgid "Crawler"
|
71 |
msgstr ""
|
72 |
|
73 |
-
#: src/admin-display.cls.php:
|
74 |
msgid "Toolbox"
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: src/admin-display.cls.php:
|
78 |
msgid "Settings"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: src/admin-display.cls.php:
|
82 |
msgid ""
|
83 |
"It is recommended that LiteSpeed Cache be purged after updating a plugin."
|
84 |
msgstr ""
|
85 |
|
86 |
-
#: src/admin-display.cls.php:
|
|
|
|
|
|
|
|
|
87 |
msgid "Save Changes"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#: src/admin-display.cls.php:
|
91 |
-
#: src/admin-display.cls.php:
|
92 |
#: tpl/cache/settings_inc.cache_mobile.tpl.php:70 tpl/cdn/settings.tpl.php:49
|
93 |
-
#: tpl/page_optm/settings_css.tpl.php:57 tpl/page_optm/settings_css.tpl.php:
|
94 |
-
#: tpl/page_optm/settings_css.tpl.php:170
|
95 |
#: tpl/page_optm/settings_css.tpl.php:171
|
|
|
96 |
#: tpl/page_optm/settings_media.tpl.php:156
|
97 |
#: tpl/toolbox/settings-debug.tpl.php:34
|
98 |
msgid "ON"
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: src/admin-display.cls.php:
|
102 |
-
#: src/admin-display.cls.php:
|
103 |
#: tpl/cache/settings_inc.object.tpl.php:210 tpl/cdn/settings.tpl.php:49
|
104 |
-
#: tpl/cdn/settings.tpl.php:237 tpl/page_optm/settings_css.tpl.php:
|
105 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
106 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
107 |
#: tpl/page_optm/settings_media.tpl.php:159
|
108 |
#: tpl/toolbox/settings-debug.tpl.php:34
|
109 |
msgid "OFF"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: src/admin-display.cls.php:
|
113 |
msgid "This setting is overwritten by the PHP constant %s"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: src/admin-display.cls.php:
|
117 |
msgid "This setting is overwritten by the primary site setting"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: src/admin-display.cls.php:
|
121 |
msgid "This setting is overwritten by the Network setting"
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: src/admin-display.cls.php:
|
125 |
msgid "currently set to %s"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: src/admin-display.cls.php:
|
129 |
#: tpl/crawler/settings-general.tpl.php:60
|
130 |
#: tpl/crawler/settings-general.tpl.php:74
|
131 |
#: tpl/crawler/settings-general.tpl.php:89 tpl/esi_widget_edit.php:70
|
132 |
msgid "seconds"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: src/admin-display.cls.php:
|
136 |
msgid "Recommended value"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#: src/admin-display.cls.php:
|
140 |
msgid "Invalid rewrite rule"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#: src/admin-display.cls.php:
|
144 |
msgid "Path must end with %s"
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: src/admin-display.cls.php:
|
148 |
msgid "Minimum value"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: src/admin-display.cls.php:
|
152 |
msgid "Maximum value"
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: src/admin-display.cls.php:
|
156 |
msgid "Zero, or"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: src/admin-display.cls.php:
|
160 |
msgid "Larger than"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: src/admin-display.cls.php:
|
164 |
msgid "Smaller than"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: src/admin-display.cls.php:
|
168 |
msgid "Value range"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: src/admin-display.cls.php:
|
172 |
msgid "Invalid IP"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: src/admin-display.cls.php:
|
176 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
177 |
#: tpl/page_optm/settings_html.tpl.php:100
|
178 |
#: tpl/page_optm/settings_media_exc.tpl.php:25
|
179 |
#: tpl/page_optm/settings_tuning.tpl.php:35
|
@@ -182,43 +186,43 @@ msgstr ""
|
|
182 |
msgid "API"
|
183 |
msgstr ""
|
184 |
|
185 |
-
#: src/admin-display.cls.php:
|
186 |
msgid "Server variable(s) %s available to override this setting."
|
187 |
msgstr ""
|
188 |
|
189 |
-
#: src/admin-display.cls.php:
|
190 |
msgid "The URLs will be compared to the REQUEST_URI server variable."
|
191 |
msgstr ""
|
192 |
|
193 |
-
#: src/admin-display.cls.php:
|
194 |
msgid "For example, for %s, %s can be used here."
|
195 |
msgstr ""
|
196 |
|
197 |
-
#: src/admin-display.cls.php:
|
198 |
msgid "To match the beginning, add %s to the beginning of the item."
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: src/admin-display.cls.php:
|
202 |
msgid "To do an exact match, add %s to the end of the URL."
|
203 |
msgstr ""
|
204 |
|
205 |
-
#: src/admin-display.cls.php:
|
206 |
msgid "One per line."
|
207 |
msgstr ""
|
208 |
|
209 |
-
#: src/admin-display.cls.php:
|
210 |
msgid "%s groups"
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: src/admin-display.cls.php:
|
214 |
msgid "%s images"
|
215 |
msgstr ""
|
216 |
|
217 |
-
#: src/admin-display.cls.php:
|
218 |
msgid "%s group"
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: src/admin-display.cls.php:
|
222 |
msgid "%s image"
|
223 |
msgstr ""
|
224 |
|
@@ -361,6 +365,26 @@ msgid ""
|
|
361 |
"will disappear once upgrade is complete."
|
362 |
msgstr ""
|
363 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
364 |
#: src/db-optm.cls.php:132
|
365 |
msgid "Clean all successfully."
|
366 |
msgstr ""
|
@@ -597,57 +621,57 @@ msgstr ""
|
|
597 |
msgid "Failed to write to %s."
|
598 |
msgstr ""
|
599 |
|
600 |
-
#: src/gui.cls.php:
|
601 |
msgid "Public Caches"
|
602 |
msgstr ""
|
603 |
|
604 |
-
#: src/gui.cls.php:
|
605 |
msgid "Public Cache Hits"
|
606 |
msgstr ""
|
607 |
|
608 |
-
#: src/gui.cls.php:
|
609 |
msgid "Private Caches"
|
610 |
msgstr ""
|
611 |
|
612 |
-
#: src/gui.cls.php:
|
613 |
msgid "Private Cache Hits"
|
614 |
msgstr ""
|
615 |
|
616 |
-
#: src/gui.cls.php:
|
617 |
msgid "Purge this page"
|
618 |
msgstr ""
|
619 |
|
620 |
-
#: src/gui.cls.php:
|
621 |
msgid "Mark this page as "
|
622 |
msgstr ""
|
623 |
|
624 |
-
#: src/gui.cls.php:
|
625 |
msgid "Forced cacheable"
|
626 |
msgstr ""
|
627 |
|
628 |
-
#: src/gui.cls.php:
|
629 |
msgid "Non cacheable"
|
630 |
msgstr ""
|
631 |
|
632 |
-
#: src/gui.cls.php:
|
633 |
msgid "Private cache"
|
634 |
msgstr ""
|
635 |
|
636 |
-
#: src/gui.cls.php:
|
637 |
msgid "No optimization"
|
638 |
msgstr ""
|
639 |
|
640 |
-
#: src/gui.cls.php:
|
641 |
msgid "More settings"
|
642 |
msgstr ""
|
643 |
|
644 |
-
#: src/gui.cls.php:
|
645 |
-
#: src/gui.cls.php:
|
646 |
-
#: src/gui.cls.php:
|
647 |
-
#: src/gui.cls.php:
|
648 |
-
#: src/gui.cls.php:
|
649 |
-
#: src/gui.cls.php:
|
650 |
-
#: src/gui.cls.php:
|
651 |
#: tpl/toolbox/purge.tpl.php:45 tpl/toolbox/purge.tpl.php:54
|
652 |
#: tpl/toolbox/purge.tpl.php:63 tpl/toolbox/purge.tpl.php:72
|
653 |
#: tpl/toolbox/purge.tpl.php:81 tpl/toolbox/purge.tpl.php:90
|
@@ -655,81 +679,81 @@ msgstr ""
|
|
655 |
msgid "Purge All"
|
656 |
msgstr ""
|
657 |
|
658 |
-
#: src/gui.cls.php:
|
659 |
msgid "LSCache"
|
660 |
msgstr ""
|
661 |
|
662 |
-
#: src/gui.cls.php:
|
663 |
msgid "CSS/JS Cache"
|
664 |
msgstr ""
|
665 |
|
666 |
-
#: src/gui.cls.php:
|
667 |
#: tpl/dash/dashboard.tpl.php:361 tpl/toolbox/purge.tpl.php:54
|
668 |
msgid "Object Cache"
|
669 |
msgstr ""
|
670 |
|
671 |
-
#: src/gui.cls.php:
|
672 |
msgid "Opcode Cache"
|
673 |
msgstr ""
|
674 |
|
675 |
-
#: src/gui.cls.php:
|
676 |
#: tpl/dash/dashboard.tpl.php:402 tpl/toolbox/purge.tpl.php:72
|
677 |
msgid "Critical CSS"
|
678 |
msgstr ""
|
679 |
|
680 |
-
#: src/gui.cls.php:
|
681 |
msgid "Localized Resources"
|
682 |
msgstr ""
|
683 |
|
684 |
-
#: src/gui.cls.php:
|
685 |
msgid "LQIP Cache"
|
686 |
msgstr ""
|
687 |
|
688 |
-
#: src/gui.cls.php:
|
689 |
#: tpl/toolbox/purge.tpl.php:99
|
690 |
msgid "Gravatar Cache"
|
691 |
msgstr ""
|
692 |
|
693 |
-
#: src/gui.cls.php:
|
694 |
msgid "LiteSpeed Cache Purge All"
|
695 |
msgstr ""
|
696 |
|
697 |
-
#: src/gui.cls.php:
|
698 |
#: tpl/db_optm/entry.tpl.php:6
|
699 |
msgid "Manage"
|
700 |
msgstr ""
|
701 |
|
702 |
-
#: src/gui.cls.php:
|
703 |
msgid "Cloudflare"
|
704 |
msgstr ""
|
705 |
|
706 |
-
#: src/gui.cls.php:
|
707 |
msgid "Remove all previous unfinished image optimization requests."
|
708 |
msgstr ""
|
709 |
|
710 |
-
#: src/gui.cls.php:
|
711 |
msgid "Clean Up Unfinished Data"
|
712 |
msgstr ""
|
713 |
|
714 |
-
#: src/gui.cls.php:
|
715 |
msgid "Install %s"
|
716 |
msgstr ""
|
717 |
|
718 |
-
#: src/gui.cls.php:
|
719 |
msgid "Install Now"
|
720 |
msgstr ""
|
721 |
|
722 |
-
#: src/gui.cls.php:
|
723 |
msgid ""
|
724 |
"<a href=\"%1$s\" %2$s>View version %3$s details</a> or <a href=\"%4$s\" %5$s "
|
725 |
"target=\"_blank\">update now</a>."
|
726 |
msgstr ""
|
727 |
|
728 |
-
#: src/gui.cls.php:
|
729 |
msgid "View %1$s version %2$s details"
|
730 |
msgstr ""
|
731 |
|
732 |
-
#: src/gui.cls.php:
|
733 |
msgid "Update %s now"
|
734 |
msgstr ""
|
735 |
|
@@ -1119,10 +1143,6 @@ msgstr ""
|
|
1119 |
msgid "JS Minify"
|
1120 |
msgstr ""
|
1121 |
|
1122 |
-
#: src/lang.cls.php:112
|
1123 |
-
msgid "JS Combine"
|
1124 |
-
msgstr ""
|
1125 |
-
|
1126 |
#: src/lang.cls.php:113
|
1127 |
msgid "JS Combine External and Inline"
|
1128 |
msgstr ""
|
@@ -1139,7 +1159,7 @@ msgstr ""
|
|
1139 |
msgid "HTML Minify"
|
1140 |
msgstr ""
|
1141 |
|
1142 |
-
#: src/lang.cls.php:117 tpl/page_optm/settings_css.tpl.php:
|
1143 |
#: tpl/page_optm/settings_tuning.tpl.php:71
|
1144 |
msgid "Load CSS Asynchronously"
|
1145 |
msgstr ""
|
@@ -1860,14 +1880,10 @@ msgstr ""
|
|
1860 |
msgid "WooCommerce"
|
1861 |
msgstr ""
|
1862 |
|
1863 |
-
#: tpl/banner/cloud_news.tpl.php:23
|
1864 |
msgid "Install"
|
1865 |
msgstr ""
|
1866 |
|
1867 |
-
#: tpl/banner/cloud_news.tpl.php:30
|
1868 |
-
msgid "Install Beta Version"
|
1869 |
-
msgstr ""
|
1870 |
-
|
1871 |
#: tpl/banner/cloud_promo.tpl.php:13
|
1872 |
msgid "You just unlocked a promotion from QUIC.cloud!"
|
1873 |
msgstr ""
|
@@ -1888,7 +1904,7 @@ msgstr ""
|
|
1888 |
msgid "Dismiss this notice"
|
1889 |
msgstr ""
|
1890 |
|
1891 |
-
#. #-#-#-#-# litespeed-cache.pot (LiteSpeed Cache 3.5.
|
1892 |
#. Plugin Name of the plugin/theme
|
1893 |
#: tpl/banner/new_version.php:59 tpl/banner/new_version_dev.tpl.php:12
|
1894 |
#: tpl/cache/more_settings_tip.tpl.php:15 tpl/inc/admin_footer.php:8
|
@@ -1904,7 +1920,7 @@ msgid "New release %s is available now."
|
|
1904 |
msgstr ""
|
1905 |
|
1906 |
#: tpl/banner/new_version.php:71 tpl/banner/new_version_dev.tpl.php:24
|
1907 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
1908 |
msgid "Upgrade"
|
1909 |
msgstr ""
|
1910 |
|
@@ -2210,7 +2226,7 @@ msgstr ""
|
|
2210 |
#: tpl/cache/settings-esi.tpl.php:35 tpl/cdn/manage.tpl.php:21
|
2211 |
#: tpl/crawler/summary.tpl.php:48 tpl/inc/check_cache_disabled.php:31
|
2212 |
#: tpl/inc/check_if_network_disable_all.php:19 tpl/page_optm/entry.tpl.php:31
|
2213 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
2214 |
#: tpl/page_optm/settings_localization.tpl.php:11
|
2215 |
msgid "WARNING"
|
2216 |
msgstr ""
|
@@ -3422,8 +3438,8 @@ msgid "Current closest Cloud server is %s. Click to redetect."
|
|
3422 |
msgstr ""
|
3423 |
|
3424 |
#: tpl/dash/dashboard.tpl.php:202 tpl/img_optm/summary.tpl.php:51
|
3425 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
3426 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
3427 |
#: tpl/page_optm/settings_media.tpl.php:172
|
3428 |
msgid ""
|
3429 |
"Are you sure you want to redetect the closest cloud server for this service?"
|
@@ -3470,7 +3486,7 @@ msgid "Cache Stats"
|
|
3470 |
msgstr ""
|
3471 |
|
3472 |
#: tpl/dash/dashboard.tpl.php:407 tpl/dash/dashboard.tpl.php:438
|
3473 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
3474 |
#: tpl/page_optm/settings_media.tpl.php:167
|
3475 |
msgid "Last generated"
|
3476 |
msgstr ""
|
@@ -3935,8 +3951,8 @@ msgstr ""
|
|
3935 |
msgid "The image compression quality setting of WordPress out of 100."
|
3936 |
msgstr ""
|
3937 |
|
3938 |
-
#: tpl/img_optm/summary.tpl.php:51 tpl/page_optm/settings_css.tpl.php:
|
3939 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
3940 |
#: tpl/page_optm/settings_media.tpl.php:172
|
3941 |
msgid "Current closest Cloud server is %s. Click to redetect."
|
3942 |
msgstr ""
|
@@ -4312,8 +4328,8 @@ msgstr ""
|
|
4312 |
msgid "JS Settings"
|
4313 |
msgstr ""
|
4314 |
|
4315 |
-
#: tpl/page_optm/entry.tpl.php:8
|
4316 |
-
msgid "Optimization
|
4317 |
msgstr ""
|
4318 |
|
4319 |
#: tpl/page_optm/entry.tpl.php:9 tpl/page_optm/settings_media.tpl.php:12
|
@@ -4325,12 +4341,11 @@ msgid "Media Excludes"
|
|
4325 |
msgstr ""
|
4326 |
|
4327 |
#: tpl/page_optm/entry.tpl.php:11
|
4328 |
-
|
4329 |
-
msgid "Localization Settings"
|
4330 |
msgstr ""
|
4331 |
|
4332 |
-
#: tpl/page_optm/entry.tpl.php:12
|
4333 |
-
msgid "Tuning
|
4334 |
msgstr ""
|
4335 |
|
4336 |
#: tpl/page_optm/entry.tpl.php:19
|
@@ -4377,36 +4392,40 @@ msgstr ""
|
|
4377 |
msgid "Use QUIC.cloud online service to generate unique CSS."
|
4378 |
msgstr ""
|
4379 |
|
4380 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
|
|
|
|
|
|
|
|
4381 |
msgid "Generate unique CSS in the background via a cron-based queue."
|
4382 |
msgstr ""
|
4383 |
|
4384 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4385 |
#: tpl/page_optm/settings_media.tpl.php:159
|
4386 |
msgid ""
|
4387 |
"If set to %s this is done in the foreground, which may slow down page load."
|
4388 |
msgstr ""
|
4389 |
|
4390 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4391 |
msgid "Last requested cost"
|
4392 |
msgstr ""
|
4393 |
|
4394 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4395 |
msgid ""
|
4396 |
"List the CSS selector that its style should be always contained in UCSS."
|
4397 |
msgstr ""
|
4398 |
|
4399 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4400 |
msgid ""
|
4401 |
"Pre-send internal CSS files to the browser before they are requested. "
|
4402 |
"(Requires the HTTP/2 protocol)"
|
4403 |
msgstr ""
|
4404 |
|
4405 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4406 |
msgid "Optimize CSS delivery."
|
4407 |
msgstr ""
|
4408 |
|
4409 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4410 |
#: tpl/page_optm/settings_html.tpl.php:81
|
4411 |
#: tpl/page_optm/settings_html.tpl.php:144 tpl/page_optm/settings_js.tpl.php:75
|
4412 |
#: tpl/page_optm/settings_media.tpl.php:217
|
@@ -4415,12 +4434,12 @@ msgid ""
|
|
4415 |
"PageSpeed."
|
4416 |
msgstr ""
|
4417 |
|
4418 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4419 |
msgid ""
|
4420 |
"When this option is turned %s, it will also load Google Fonts asynchronously."
|
4421 |
msgstr ""
|
4422 |
|
4423 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4424 |
#: tpl/page_optm/settings_media_exc.tpl.php:27
|
4425 |
#: tpl/page_optm/settings_tuning.tpl.php:37
|
4426 |
#: tpl/page_optm/settings_tuning.tpl.php:57
|
@@ -4428,72 +4447,76 @@ msgstr ""
|
|
4428 |
msgid "Elements with attribute %s in html code will be excluded."
|
4429 |
msgstr ""
|
4430 |
|
4431 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4432 |
msgid ""
|
4433 |
"Leave this option %1$s to allow communication with the QUIC.cloud CCSS "
|
4434 |
"service. If set to %2$s, Critical CSS will not be generated."
|
4435 |
msgstr ""
|
4436 |
|
4437 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4438 |
msgid "This option only works if %1$s is %2$s."
|
4439 |
msgstr ""
|
4440 |
|
4441 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4442 |
msgid ""
|
4443 |
"Automatically generate critical CSS in the background via a cron-based queue."
|
4444 |
msgstr ""
|
4445 |
|
4446 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4447 |
msgid "URL list in queue waiting for cron"
|
4448 |
msgstr ""
|
4449 |
|
4450 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4451 |
#: tpl/page_optm/settings_localization.tpl.php:62
|
4452 |
#: tpl/page_optm/settings_media.tpl.php:186
|
4453 |
msgid "Run Queue Manually"
|
4454 |
msgstr ""
|
4455 |
|
4456 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4457 |
msgid ""
|
4458 |
"List post types where each item of that type should have its own CCSS "
|
4459 |
"generated."
|
4460 |
msgstr ""
|
4461 |
|
4462 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4463 |
msgid ""
|
4464 |
"For example, if every Page on the site has different formatting, enter %s in "
|
4465 |
"the box. Separate critical CSS files will be stored for every Page on the "
|
4466 |
"site."
|
4467 |
msgstr ""
|
4468 |
|
4469 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4470 |
msgid ""
|
4471 |
"Separate critical CSS files will be generated for paths containing these "
|
4472 |
"strings."
|
4473 |
msgstr ""
|
4474 |
|
4475 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4476 |
msgid "This will inline the asynchronous CSS library to avoid render blocking."
|
4477 |
msgstr ""
|
4478 |
|
4479 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4480 |
msgid "Default"
|
4481 |
msgstr ""
|
4482 |
|
4483 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4484 |
msgid ""
|
4485 |
"Set this to append %1$s to all %2$s rules before caching CSS to specify how "
|
4486 |
"fonts should be displayed while being downloaded."
|
4487 |
msgstr ""
|
4488 |
|
4489 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4490 |
msgid "%s is recommended."
|
4491 |
msgstr ""
|
4492 |
|
4493 |
-
#: tpl/page_optm/settings_css.tpl.php:
|
4494 |
msgid "Swap"
|
4495 |
msgstr ""
|
4496 |
|
|
|
|
|
|
|
|
|
4497 |
#: tpl/page_optm/settings_html.tpl.php:21
|
4498 |
msgid "Specify how long, in seconds, CSS/JS files are cached."
|
4499 |
msgstr ""
|
@@ -4614,6 +4637,10 @@ msgid ""
|
|
4614 |
"from LiteSpeed Wiki</a> to finish setup."
|
4615 |
msgstr ""
|
4616 |
|
|
|
|
|
|
|
|
|
4617 |
#: tpl/page_optm/settings_localization.tpl.php:30
|
4618 |
msgid "Store Gravatar locally."
|
4619 |
msgstr ""
|
@@ -4828,6 +4855,10 @@ msgstr ""
|
|
4828 |
msgid "These images will not generate LQIP."
|
4829 |
msgstr ""
|
4830 |
|
|
|
|
|
|
|
|
|
4831 |
#: tpl/page_optm/settings_tuning.tpl.php:31
|
4832 |
msgid "Listed CSS files or inline CSS code will not be minified/combined."
|
4833 |
msgstr ""
|
@@ -4852,37 +4883,37 @@ msgstr ""
|
|
4852 |
msgid "Selected roles will be excluded from all optimizations."
|
4853 |
msgstr ""
|
4854 |
|
4855 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4856 |
msgid "Try GitHub Version"
|
4857 |
msgstr ""
|
4858 |
|
4859 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4860 |
msgid ""
|
4861 |
"Use this section to switch plugin versions. To beta test a GitHub commit, "
|
4862 |
"enter the commit URL in the field below."
|
4863 |
msgstr ""
|
4864 |
|
4865 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4866 |
msgid "Example"
|
4867 |
msgstr ""
|
4868 |
|
4869 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4870 |
msgid "Use latest GitHub commit"
|
4871 |
msgstr ""
|
4872 |
|
4873 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4874 |
-
msgid "
|
4875 |
msgstr ""
|
4876 |
|
4877 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4878 |
-
msgid "
|
4879 |
msgstr ""
|
4880 |
|
4881 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4882 |
msgid "Press the %s button to use the most recent GitHub commit."
|
4883 |
msgstr ""
|
4884 |
|
4885 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4886 |
msgid ""
|
4887 |
"Press the %s button to stop beta testing and go back to the current release "
|
4888 |
"from the WordPress Plugin Directory."
|
2 |
# This file is distributed under the same license as the LiteSpeed Cache package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: LiteSpeed Cache 3.5.2\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
|
7 |
+
"POT-Creation-Date: 2020-10-27 17:06:10+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
36 |
msgid "Upgraded successfully."
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: src/admin-display.cls.php:150 tpl/dash/entry.tpl.php:6
|
40 |
msgid "Dashboard"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: src/admin-display.cls.php:152
|
44 |
msgid "General"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: src/admin-display.cls.php:154 tpl/cache/entry.tpl.php:6
|
48 |
#: tpl/cache/entry_network.tpl.php:6
|
49 |
msgid "Cache"
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: src/admin-display.cls.php:156 tpl/cdn/settings.tpl.php:253
|
53 |
msgid "CDN"
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: src/admin-display.cls.php:158 src/gui.cls.php:595
|
57 |
#: tpl/dash/dashboard.tpl.php:52 tpl/dash/network_dash.tpl.php:27
|
58 |
msgid "Image Optimization"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: src/admin-display.cls.php:160
|
62 |
msgid "Page Optimization"
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: src/admin-display.cls.php:162
|
66 |
msgid "Database"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: src/admin-display.cls.php:164 src/lang.cls.php:212
|
70 |
msgid "Crawler"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: src/admin-display.cls.php:166
|
74 |
msgid "Toolbox"
|
75 |
msgstr ""
|
76 |
|
77 |
+
#: src/admin-display.cls.php:246 src/gui.cls.php:586
|
78 |
msgid "Settings"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: src/admin-display.cls.php:265
|
82 |
msgid ""
|
83 |
"It is recommended that LiteSpeed Cache be purged after updating a plugin."
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: src/admin-display.cls.php:458
|
87 |
+
msgid "Dismiss"
|
88 |
+
msgstr ""
|
89 |
+
|
90 |
+
#: src/admin-display.cls.php:686
|
91 |
msgid "Save Changes"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: src/admin-display.cls.php:811 src/admin-display.cls.php:846
|
95 |
+
#: src/admin-display.cls.php:897 tpl/cache/settings-cache.tpl.php:19
|
96 |
#: tpl/cache/settings_inc.cache_mobile.tpl.php:70 tpl/cdn/settings.tpl.php:49
|
97 |
+
#: tpl/page_optm/settings_css.tpl.php:57 tpl/page_optm/settings_css.tpl.php:154
|
|
|
98 |
#: tpl/page_optm/settings_css.tpl.php:171
|
99 |
+
#: tpl/page_optm/settings_css.tpl.php:172
|
100 |
#: tpl/page_optm/settings_media.tpl.php:156
|
101 |
#: tpl/toolbox/settings-debug.tpl.php:34
|
102 |
msgid "ON"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: src/admin-display.cls.php:812 src/admin-display.cls.php:845
|
106 |
+
#: src/admin-display.cls.php:897 tpl/cache/settings-cache.tpl.php:19
|
107 |
#: tpl/cache/settings_inc.object.tpl.php:210 tpl/cdn/settings.tpl.php:49
|
108 |
+
#: tpl/cdn/settings.tpl.php:237 tpl/page_optm/settings_css.tpl.php:88
|
109 |
+
#: tpl/page_optm/settings_css.tpl.php:171
|
110 |
+
#: tpl/page_optm/settings_css.tpl.php:186
|
111 |
#: tpl/page_optm/settings_media.tpl.php:159
|
112 |
#: tpl/toolbox/settings-debug.tpl.php:34
|
113 |
msgid "OFF"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: src/admin-display.cls.php:909
|
117 |
msgid "This setting is overwritten by the PHP constant %s"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: src/admin-display.cls.php:912
|
121 |
msgid "This setting is overwritten by the primary site setting"
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: src/admin-display.cls.php:915
|
125 |
msgid "This setting is overwritten by the Network setting"
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: src/admin-display.cls.php:919
|
129 |
msgid "currently set to %s"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: src/admin-display.cls.php:929 tpl/cache/settings_inc.object.tpl.php:103
|
133 |
#: tpl/crawler/settings-general.tpl.php:60
|
134 |
#: tpl/crawler/settings-general.tpl.php:74
|
135 |
#: tpl/crawler/settings-general.tpl.php:89 tpl/esi_widget_edit.php:70
|
136 |
msgid "seconds"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: src/admin-display.cls.php:960 src/admin-display.cls.php:965
|
140 |
msgid "Recommended value"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: src/admin-display.cls.php:989
|
144 |
msgid "Invalid rewrite rule"
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: src/admin-display.cls.php:1006
|
148 |
msgid "Path must end with %s"
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: src/admin-display.cls.php:1024
|
152 |
msgid "Minimum value"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: src/admin-display.cls.php:1027
|
156 |
msgid "Maximum value"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: src/admin-display.cls.php:1039
|
160 |
msgid "Zero, or"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: src/admin-display.cls.php:1046
|
164 |
msgid "Larger than"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: src/admin-display.cls.php:1049
|
168 |
msgid "Smaller than"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: src/admin-display.cls.php:1052
|
172 |
msgid "Value range"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: src/admin-display.cls.php:1077
|
176 |
msgid "Invalid IP"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: src/admin-display.cls.php:1097 tpl/cache/settings-esi.tpl.php:95
|
180 |
+
#: tpl/page_optm/settings_css.tpl.php:156
|
181 |
#: tpl/page_optm/settings_html.tpl.php:100
|
182 |
#: tpl/page_optm/settings_media_exc.tpl.php:25
|
183 |
#: tpl/page_optm/settings_tuning.tpl.php:35
|
186 |
msgid "API"
|
187 |
msgstr ""
|
188 |
|
189 |
+
#: src/admin-display.cls.php:1098
|
190 |
msgid "Server variable(s) %s available to override this setting."
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: src/admin-display.cls.php:1110
|
194 |
msgid "The URLs will be compared to the REQUEST_URI server variable."
|
195 |
msgstr ""
|
196 |
|
197 |
+
#: src/admin-display.cls.php:1111
|
198 |
msgid "For example, for %s, %s can be used here."
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: src/admin-display.cls.php:1113
|
202 |
msgid "To match the beginning, add %s to the beginning of the item."
|
203 |
msgstr ""
|
204 |
|
205 |
+
#: src/admin-display.cls.php:1114
|
206 |
msgid "To do an exact match, add %s to the end of the URL."
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: src/admin-display.cls.php:1115 src/doc.cls.php:61
|
210 |
msgid "One per line."
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: src/admin-display.cls.php:1129
|
214 |
msgid "%s groups"
|
215 |
msgstr ""
|
216 |
|
217 |
+
#: src/admin-display.cls.php:1132
|
218 |
msgid "%s images"
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: src/admin-display.cls.php:1142
|
222 |
msgid "%s group"
|
223 |
msgstr ""
|
224 |
|
225 |
+
#: src/admin-display.cls.php:1145
|
226 |
msgid "%s image"
|
227 |
msgstr ""
|
228 |
|
365 |
"will disappear once upgrade is complete."
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: src/data.upgrade.func.php:42
|
369 |
+
msgid ""
|
370 |
+
"LiteSpeed Cache upgraded successfully. NOTE: Due to changes in this version, "
|
371 |
+
"the settings %1$s and %2$s have been turned OFF. Please turn them back on "
|
372 |
+
"manually and verify that your site layout is correct, and you have no JS "
|
373 |
+
"errors."
|
374 |
+
msgstr ""
|
375 |
+
|
376 |
+
#: src/data.upgrade.func.php:42 src/lang.cls.php:112
|
377 |
+
msgid "JS Combine"
|
378 |
+
msgstr ""
|
379 |
+
|
380 |
+
#: src/data.upgrade.func.php:42
|
381 |
+
msgid "JS Defer"
|
382 |
+
msgstr ""
|
383 |
+
|
384 |
+
#: src/data.upgrade.func.php:43
|
385 |
+
msgid "Click here to settings"
|
386 |
+
msgstr ""
|
387 |
+
|
388 |
#: src/db-optm.cls.php:132
|
389 |
msgid "Clean all successfully."
|
390 |
msgstr ""
|
621 |
msgid "Failed to write to %s."
|
622 |
msgstr ""
|
623 |
|
624 |
+
#: src/gui.cls.php:82
|
625 |
msgid "Public Caches"
|
626 |
msgstr ""
|
627 |
|
628 |
+
#: src/gui.cls.php:83
|
629 |
msgid "Public Cache Hits"
|
630 |
msgstr ""
|
631 |
|
632 |
+
#: src/gui.cls.php:84
|
633 |
msgid "Private Caches"
|
634 |
msgstr ""
|
635 |
|
636 |
+
#: src/gui.cls.php:85
|
637 |
msgid "Private Cache Hits"
|
638 |
msgstr ""
|
639 |
|
640 |
+
#: src/gui.cls.php:395
|
641 |
msgid "Purge this page"
|
642 |
msgstr ""
|
643 |
|
644 |
+
#: src/gui.cls.php:403
|
645 |
msgid "Mark this page as "
|
646 |
msgstr ""
|
647 |
|
648 |
+
#: src/gui.cls.php:415
|
649 |
msgid "Forced cacheable"
|
650 |
msgstr ""
|
651 |
|
652 |
+
#: src/gui.cls.php:426
|
653 |
msgid "Non cacheable"
|
654 |
msgstr ""
|
655 |
|
656 |
+
#: src/gui.cls.php:437
|
657 |
msgid "Private cache"
|
658 |
msgstr ""
|
659 |
|
660 |
+
#: src/gui.cls.php:448
|
661 |
msgid "No optimization"
|
662 |
msgstr ""
|
663 |
|
664 |
+
#: src/gui.cls.php:456
|
665 |
msgid "More settings"
|
666 |
msgstr ""
|
667 |
|
668 |
+
#: src/gui.cls.php:463 src/gui.cls.php:471 src/gui.cls.php:479
|
669 |
+
#: src/gui.cls.php:488 src/gui.cls.php:498 src/gui.cls.php:508
|
670 |
+
#: src/gui.cls.php:518 src/gui.cls.php:528 src/gui.cls.php:538
|
671 |
+
#: src/gui.cls.php:604 src/gui.cls.php:612 src/gui.cls.php:620
|
672 |
+
#: src/gui.cls.php:629 src/gui.cls.php:639 src/gui.cls.php:649
|
673 |
+
#: src/gui.cls.php:659 src/gui.cls.php:669 src/gui.cls.php:679
|
674 |
+
#: src/gui.cls.php:689 tpl/toolbox/purge.tpl.php:39
|
675 |
#: tpl/toolbox/purge.tpl.php:45 tpl/toolbox/purge.tpl.php:54
|
676 |
#: tpl/toolbox/purge.tpl.php:63 tpl/toolbox/purge.tpl.php:72
|
677 |
#: tpl/toolbox/purge.tpl.php:81 tpl/toolbox/purge.tpl.php:90
|
679 |
msgid "Purge All"
|
680 |
msgstr ""
|
681 |
|
682 |
+
#: src/gui.cls.php:471 src/gui.cls.php:562 src/gui.cls.php:612
|
683 |
msgid "LSCache"
|
684 |
msgstr ""
|
685 |
|
686 |
+
#: src/gui.cls.php:479 src/gui.cls.php:620 tpl/toolbox/purge.tpl.php:45
|
687 |
msgid "CSS/JS Cache"
|
688 |
msgstr ""
|
689 |
|
690 |
+
#: src/gui.cls.php:488 src/gui.cls.php:639 src/lang.cls.php:79
|
691 |
#: tpl/dash/dashboard.tpl.php:361 tpl/toolbox/purge.tpl.php:54
|
692 |
msgid "Object Cache"
|
693 |
msgstr ""
|
694 |
|
695 |
+
#: src/gui.cls.php:498 src/gui.cls.php:649 tpl/toolbox/purge.tpl.php:63
|
696 |
msgid "Opcode Cache"
|
697 |
msgstr ""
|
698 |
|
699 |
+
#: src/gui.cls.php:508 src/gui.cls.php:659 tpl/dash/dashboard.tpl.php:53
|
700 |
#: tpl/dash/dashboard.tpl.php:402 tpl/toolbox/purge.tpl.php:72
|
701 |
msgid "Critical CSS"
|
702 |
msgstr ""
|
703 |
|
704 |
+
#: src/gui.cls.php:518 src/gui.cls.php:669 tpl/toolbox/purge.tpl.php:81
|
705 |
msgid "Localized Resources"
|
706 |
msgstr ""
|
707 |
|
708 |
+
#: src/gui.cls.php:528 src/gui.cls.php:679 tpl/toolbox/purge.tpl.php:90
|
709 |
msgid "LQIP Cache"
|
710 |
msgstr ""
|
711 |
|
712 |
+
#: src/gui.cls.php:538 src/gui.cls.php:689 src/lang.cls.php:143
|
713 |
#: tpl/toolbox/purge.tpl.php:99
|
714 |
msgid "Gravatar Cache"
|
715 |
msgstr ""
|
716 |
|
717 |
+
#: src/gui.cls.php:562
|
718 |
msgid "LiteSpeed Cache Purge All"
|
719 |
msgstr ""
|
720 |
|
721 |
+
#: src/gui.cls.php:578 tpl/cdn/entry.tpl.php:7 tpl/cdn/settings.tpl.php:253
|
722 |
#: tpl/db_optm/entry.tpl.php:6
|
723 |
msgid "Manage"
|
724 |
msgstr ""
|
725 |
|
726 |
+
#: src/gui.cls.php:629 tpl/cdn/manage.tpl.php:17
|
727 |
msgid "Cloudflare"
|
728 |
msgstr ""
|
729 |
|
730 |
+
#: src/gui.cls.php:708 tpl/img_optm/summary.tpl.php:169
|
731 |
msgid "Remove all previous unfinished image optimization requests."
|
732 |
msgstr ""
|
733 |
|
734 |
+
#: src/gui.cls.php:709 tpl/img_optm/summary.tpl.php:171
|
735 |
msgid "Clean Up Unfinished Data"
|
736 |
msgstr ""
|
737 |
|
738 |
+
#: src/gui.cls.php:727
|
739 |
msgid "Install %s"
|
740 |
msgstr ""
|
741 |
|
742 |
+
#: src/gui.cls.php:728
|
743 |
msgid "Install Now"
|
744 |
msgstr ""
|
745 |
|
746 |
+
#: src/gui.cls.php:747
|
747 |
msgid ""
|
748 |
"<a href=\"%1$s\" %2$s>View version %3$s details</a> or <a href=\"%4$s\" %5$s "
|
749 |
"target=\"_blank\">update now</a>."
|
750 |
msgstr ""
|
751 |
|
752 |
+
#: src/gui.cls.php:750
|
753 |
msgid "View %1$s version %2$s details"
|
754 |
msgstr ""
|
755 |
|
756 |
+
#: src/gui.cls.php:755
|
757 |
msgid "Update %s now"
|
758 |
msgstr ""
|
759 |
|
1143 |
msgid "JS Minify"
|
1144 |
msgstr ""
|
1145 |
|
|
|
|
|
|
|
|
|
1146 |
#: src/lang.cls.php:113
|
1147 |
msgid "JS Combine External and Inline"
|
1148 |
msgstr ""
|
1159 |
msgid "HTML Minify"
|
1160 |
msgstr ""
|
1161 |
|
1162 |
+
#: src/lang.cls.php:117 tpl/page_optm/settings_css.tpl.php:172
|
1163 |
#: tpl/page_optm/settings_tuning.tpl.php:71
|
1164 |
msgid "Load CSS Asynchronously"
|
1165 |
msgstr ""
|
1880 |
msgid "WooCommerce"
|
1881 |
msgstr ""
|
1882 |
|
1883 |
+
#: tpl/banner/cloud_news.tpl.php:23 tpl/banner/cloud_news.tpl.php:30
|
1884 |
msgid "Install"
|
1885 |
msgstr ""
|
1886 |
|
|
|
|
|
|
|
|
|
1887 |
#: tpl/banner/cloud_promo.tpl.php:13
|
1888 |
msgid "You just unlocked a promotion from QUIC.cloud!"
|
1889 |
msgstr ""
|
1904 |
msgid "Dismiss this notice"
|
1905 |
msgstr ""
|
1906 |
|
1907 |
+
#. #-#-#-#-# litespeed-cache.pot (LiteSpeed Cache 3.5.2) #-#-#-#-#
|
1908 |
#. Plugin Name of the plugin/theme
|
1909 |
#: tpl/banner/new_version.php:59 tpl/banner/new_version_dev.tpl.php:12
|
1910 |
#: tpl/cache/more_settings_tip.tpl.php:15 tpl/inc/admin_footer.php:8
|
1920 |
msgstr ""
|
1921 |
|
1922 |
#: tpl/banner/new_version.php:71 tpl/banner/new_version_dev.tpl.php:24
|
1923 |
+
#: tpl/toolbox/beta_test.tpl.php:43
|
1924 |
msgid "Upgrade"
|
1925 |
msgstr ""
|
1926 |
|
2226 |
#: tpl/cache/settings-esi.tpl.php:35 tpl/cdn/manage.tpl.php:21
|
2227 |
#: tpl/crawler/summary.tpl.php:48 tpl/inc/check_cache_disabled.php:31
|
2228 |
#: tpl/inc/check_if_network_disable_all.php:19 tpl/page_optm/entry.tpl.php:31
|
2229 |
+
#: tpl/page_optm/settings_css.tpl.php:148
|
2230 |
#: tpl/page_optm/settings_localization.tpl.php:11
|
2231 |
msgid "WARNING"
|
2232 |
msgstr ""
|
3438 |
msgstr ""
|
3439 |
|
3440 |
#: tpl/dash/dashboard.tpl.php:202 tpl/img_optm/summary.tpl.php:51
|
3441 |
+
#: tpl/page_optm/settings_css.tpl.php:103
|
3442 |
+
#: tpl/page_optm/settings_css.tpl.php:202
|
3443 |
#: tpl/page_optm/settings_media.tpl.php:172
|
3444 |
msgid ""
|
3445 |
"Are you sure you want to redetect the closest cloud server for this service?"
|
3486 |
msgstr ""
|
3487 |
|
3488 |
#: tpl/dash/dashboard.tpl.php:407 tpl/dash/dashboard.tpl.php:438
|
3489 |
+
#: tpl/page_optm/settings_css.tpl.php:95 tpl/page_optm/settings_css.tpl.php:194
|
3490 |
#: tpl/page_optm/settings_media.tpl.php:167
|
3491 |
msgid "Last generated"
|
3492 |
msgstr ""
|
3951 |
msgid "The image compression quality setting of WordPress out of 100."
|
3952 |
msgstr ""
|
3953 |
|
3954 |
+
#: tpl/img_optm/summary.tpl.php:51 tpl/page_optm/settings_css.tpl.php:103
|
3955 |
+
#: tpl/page_optm/settings_css.tpl.php:202
|
3956 |
#: tpl/page_optm/settings_media.tpl.php:172
|
3957 |
msgid "Current closest Cloud server is %s. Click to redetect."
|
3958 |
msgstr ""
|
4328 |
msgid "JS Settings"
|
4329 |
msgstr ""
|
4330 |
|
4331 |
+
#: tpl/page_optm/entry.tpl.php:8
|
4332 |
+
msgid "Optimization"
|
4333 |
msgstr ""
|
4334 |
|
4335 |
#: tpl/page_optm/entry.tpl.php:9 tpl/page_optm/settings_media.tpl.php:12
|
4341 |
msgstr ""
|
4342 |
|
4343 |
#: tpl/page_optm/entry.tpl.php:11
|
4344 |
+
msgid "Localization"
|
|
|
4345 |
msgstr ""
|
4346 |
|
4347 |
+
#: tpl/page_optm/entry.tpl.php:12
|
4348 |
+
msgid "Tuning"
|
4349 |
msgstr ""
|
4350 |
|
4351 |
#: tpl/page_optm/entry.tpl.php:19
|
4392 |
msgid "Use QUIC.cloud online service to generate unique CSS."
|
4393 |
msgstr ""
|
4394 |
|
4395 |
+
#: tpl/page_optm/settings_css.tpl.php:74
|
4396 |
+
msgid "This will drop the unused CSS on each page."
|
4397 |
+
msgstr ""
|
4398 |
+
|
4399 |
+
#: tpl/page_optm/settings_css.tpl.php:87
|
4400 |
msgid "Generate unique CSS in the background via a cron-based queue."
|
4401 |
msgstr ""
|
4402 |
|
4403 |
+
#: tpl/page_optm/settings_css.tpl.php:88 tpl/page_optm/settings_css.tpl.php:186
|
4404 |
#: tpl/page_optm/settings_media.tpl.php:159
|
4405 |
msgid ""
|
4406 |
"If set to %s this is done in the foreground, which may slow down page load."
|
4407 |
msgstr ""
|
4408 |
|
4409 |
+
#: tpl/page_optm/settings_css.tpl.php:98 tpl/page_optm/settings_css.tpl.php:197
|
4410 |
msgid "Last requested cost"
|
4411 |
msgstr ""
|
4412 |
|
4413 |
+
#: tpl/page_optm/settings_css.tpl.php:120
|
4414 |
msgid ""
|
4415 |
"List the CSS selector that its style should be always contained in UCSS."
|
4416 |
msgstr ""
|
4417 |
|
4418 |
+
#: tpl/page_optm/settings_css.tpl.php:133
|
4419 |
msgid ""
|
4420 |
"Pre-send internal CSS files to the browser before they are requested. "
|
4421 |
"(Requires the HTTP/2 protocol)"
|
4422 |
msgstr ""
|
4423 |
|
4424 |
+
#: tpl/page_optm/settings_css.tpl.php:152
|
4425 |
msgid "Optimize CSS delivery."
|
4426 |
msgstr ""
|
4427 |
|
4428 |
+
#: tpl/page_optm/settings_css.tpl.php:153
|
4429 |
#: tpl/page_optm/settings_html.tpl.php:81
|
4430 |
#: tpl/page_optm/settings_html.tpl.php:144 tpl/page_optm/settings_js.tpl.php:75
|
4431 |
#: tpl/page_optm/settings_media.tpl.php:217
|
4434 |
"PageSpeed."
|
4435 |
msgstr ""
|
4436 |
|
4437 |
+
#: tpl/page_optm/settings_css.tpl.php:154
|
4438 |
msgid ""
|
4439 |
"When this option is turned %s, it will also load Google Fonts asynchronously."
|
4440 |
msgstr ""
|
4441 |
|
4442 |
+
#: tpl/page_optm/settings_css.tpl.php:157
|
4443 |
#: tpl/page_optm/settings_media_exc.tpl.php:27
|
4444 |
#: tpl/page_optm/settings_tuning.tpl.php:37
|
4445 |
#: tpl/page_optm/settings_tuning.tpl.php:57
|
4447 |
msgid "Elements with attribute %s in html code will be excluded."
|
4448 |
msgstr ""
|
4449 |
|
4450 |
+
#: tpl/page_optm/settings_css.tpl.php:171
|
4451 |
msgid ""
|
4452 |
"Leave this option %1$s to allow communication with the QUIC.cloud CCSS "
|
4453 |
"service. If set to %2$s, Critical CSS will not be generated."
|
4454 |
msgstr ""
|
4455 |
|
4456 |
+
#: tpl/page_optm/settings_css.tpl.php:172
|
4457 |
msgid "This option only works if %1$s is %2$s."
|
4458 |
msgstr ""
|
4459 |
|
4460 |
+
#: tpl/page_optm/settings_css.tpl.php:185
|
4461 |
msgid ""
|
4462 |
"Automatically generate critical CSS in the background via a cron-based queue."
|
4463 |
msgstr ""
|
4464 |
|
4465 |
+
#: tpl/page_optm/settings_css.tpl.php:208
|
4466 |
msgid "URL list in queue waiting for cron"
|
4467 |
msgstr ""
|
4468 |
|
4469 |
+
#: tpl/page_optm/settings_css.tpl.php:221
|
4470 |
#: tpl/page_optm/settings_localization.tpl.php:62
|
4471 |
#: tpl/page_optm/settings_media.tpl.php:186
|
4472 |
msgid "Run Queue Manually"
|
4473 |
msgstr ""
|
4474 |
|
4475 |
+
#: tpl/page_optm/settings_css.tpl.php:237
|
4476 |
msgid ""
|
4477 |
"List post types where each item of that type should have its own CCSS "
|
4478 |
"generated."
|
4479 |
msgstr ""
|
4480 |
|
4481 |
+
#: tpl/page_optm/settings_css.tpl.php:238
|
4482 |
msgid ""
|
4483 |
"For example, if every Page on the site has different formatting, enter %s in "
|
4484 |
"the box. Separate critical CSS files will be stored for every Page on the "
|
4485 |
"site."
|
4486 |
msgstr ""
|
4487 |
|
4488 |
+
#: tpl/page_optm/settings_css.tpl.php:252
|
4489 |
msgid ""
|
4490 |
"Separate critical CSS files will be generated for paths containing these "
|
4491 |
"strings."
|
4492 |
msgstr ""
|
4493 |
|
4494 |
+
#: tpl/page_optm/settings_css.tpl.php:266
|
4495 |
msgid "This will inline the asynchronous CSS library to avoid render blocking."
|
4496 |
msgstr ""
|
4497 |
|
4498 |
+
#: tpl/page_optm/settings_css.tpl.php:277 tpl/page_optm/settings_js.tpl.php:86
|
4499 |
msgid "Default"
|
4500 |
msgstr ""
|
4501 |
|
4502 |
+
#: tpl/page_optm/settings_css.tpl.php:279
|
4503 |
msgid ""
|
4504 |
"Set this to append %1$s to all %2$s rules before caching CSS to specify how "
|
4505 |
"fonts should be displayed while being downloaded."
|
4506 |
msgstr ""
|
4507 |
|
4508 |
+
#: tpl/page_optm/settings_css.tpl.php:280
|
4509 |
msgid "%s is recommended."
|
4510 |
msgstr ""
|
4511 |
|
4512 |
+
#: tpl/page_optm/settings_css.tpl.php:280
|
4513 |
msgid "Swap"
|
4514 |
msgstr ""
|
4515 |
|
4516 |
+
#: tpl/page_optm/settings_html.tpl.php:7
|
4517 |
+
msgid "Optimization Settings"
|
4518 |
+
msgstr ""
|
4519 |
+
|
4520 |
#: tpl/page_optm/settings_html.tpl.php:21
|
4521 |
msgid "Specify how long, in seconds, CSS/JS files are cached."
|
4522 |
msgstr ""
|
4637 |
"from LiteSpeed Wiki</a> to finish setup."
|
4638 |
msgstr ""
|
4639 |
|
4640 |
+
#: tpl/page_optm/settings_localization.tpl.php:17
|
4641 |
+
msgid "Localization Settings"
|
4642 |
+
msgstr ""
|
4643 |
+
|
4644 |
#: tpl/page_optm/settings_localization.tpl.php:30
|
4645 |
msgid "Store Gravatar locally."
|
4646 |
msgstr ""
|
4855 |
msgid "These images will not generate LQIP."
|
4856 |
msgstr ""
|
4857 |
|
4858 |
+
#: tpl/page_optm/settings_tuning.tpl.php:18
|
4859 |
+
msgid "Tuning Settings"
|
4860 |
+
msgstr ""
|
4861 |
+
|
4862 |
#: tpl/page_optm/settings_tuning.tpl.php:31
|
4863 |
msgid "Listed CSS files or inline CSS code will not be minified/combined."
|
4864 |
msgstr ""
|
4883 |
msgid "Selected roles will be excluded from all optimizations."
|
4884 |
msgstr ""
|
4885 |
|
4886 |
+
#: tpl/toolbox/beta_test.tpl.php:19
|
4887 |
msgid "Try GitHub Version"
|
4888 |
msgstr ""
|
4889 |
|
4890 |
+
#: tpl/toolbox/beta_test.tpl.php:23
|
4891 |
msgid ""
|
4892 |
"Use this section to switch plugin versions. To beta test a GitHub commit, "
|
4893 |
"enter the commit URL in the field below."
|
4894 |
msgstr ""
|
4895 |
|
4896 |
+
#: tpl/toolbox/beta_test.tpl.php:24
|
4897 |
msgid "Example"
|
4898 |
msgstr ""
|
4899 |
|
4900 |
+
#: tpl/toolbox/beta_test.tpl.php:28 tpl/toolbox/beta_test.tpl.php:40
|
4901 |
msgid "Use latest GitHub commit"
|
4902 |
msgstr ""
|
4903 |
|
4904 |
+
#: tpl/toolbox/beta_test.tpl.php:30 tpl/toolbox/beta_test.tpl.php:41
|
4905 |
+
msgid "Use latest WordPress release version"
|
4906 |
msgstr ""
|
4907 |
|
4908 |
+
#: tpl/toolbox/beta_test.tpl.php:30
|
4909 |
+
msgid "OR"
|
4910 |
msgstr ""
|
4911 |
|
4912 |
+
#: tpl/toolbox/beta_test.tpl.php:40
|
4913 |
msgid "Press the %s button to use the most recent GitHub commit."
|
4914 |
msgstr ""
|
4915 |
|
4916 |
+
#: tpl/toolbox/beta_test.tpl.php:41
|
4917 |
msgid ""
|
4918 |
"Press the %s button to stop beta testing and go back to the current release "
|
4919 |
"from the WordPress Plugin Directory."
|
litespeed-cache.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: LiteSpeed Cache
|
4 |
* Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
|
5 |
* Description: High-performance page caching and site optimization from LiteSpeed
|
6 |
-
* Version: 3.5.
|
7 |
* Author: LiteSpeed Technologies
|
8 |
* Author URI: https://www.litespeedtech.com
|
9 |
* License: GPLv3
|
@@ -33,7 +33,7 @@ if ( class_exists( 'LiteSpeed\Core' ) || defined( 'LSCWP_DIR' ) ) {
|
|
33 |
return;
|
34 |
}
|
35 |
|
36 |
-
! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '3.5.
|
37 |
|
38 |
! defined( 'LSCWP_CONTENT_DIR' ) && define( 'LSCWP_CONTENT_DIR', WP_CONTENT_DIR ) ;
|
39 |
! defined( 'LSCWP_DIR' ) && define( 'LSCWP_DIR', __DIR__ . '/' ) ;// Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU
|
3 |
* Plugin Name: LiteSpeed Cache
|
4 |
* Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
|
5 |
* Description: High-performance page caching and site optimization from LiteSpeed
|
6 |
+
* Version: 3.5.2
|
7 |
* Author: LiteSpeed Technologies
|
8 |
* Author URI: https://www.litespeedtech.com
|
9 |
* License: GPLv3
|
33 |
return;
|
34 |
}
|
35 |
|
36 |
+
! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '3.5.2' );
|
37 |
|
38 |
! defined( 'LSCWP_CONTENT_DIR' ) && define( 'LSCWP_CONTENT_DIR', WP_CONTENT_DIR ) ;
|
39 |
! defined( 'LSCWP_DIR' ) && define( 'LSCWP_DIR', __DIR__ . '/' ) ;// Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: LiteSpeedTech
|
|
3 |
Tags: caching, optimize, performance, pagespeed, seo, speed, image optimize, compress, object cache, redis, memcached, database cleaner
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.5.1
|
6 |
-
Stable tag: 3.5.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
|
@@ -247,6 +247,12 @@ The vast majority of plugins and themes are compatible with LiteSpeed Cache. The
|
|
247 |
|
248 |
== Changelog ==
|
249 |
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
= 3.5.1 - Oct 20 2020 =
|
251 |
* **JS** Inline JS containing nonces can now be combined.
|
252 |
* **JS** Reset JS Combine/Defer to OFF when upgrading to avoid breaking sites.
|
@@ -254,7 +260,7 @@ The vast majority of plugins and themes are compatible with LiteSpeed Cache. The
|
|
254 |
* **JS** Added Inline JS Defer option back. (@ankit)
|
255 |
* **Page Optimize** Dropped Inline JS Minify option and merged the feature into JS Minify.
|
256 |
* **JS** Pre-added jQuery to the default JS excludes/defer list for better layout compatibility for new users.
|
257 |
-
* **JS** Excluded Stripe/PayPal/Google
|
258 |
* **JS** Allowed excluded JS to still be HTTP2 pushed. (@joshua)
|
259 |
* **CCSS** Critical CSS now can avoid network pollution from other sites. (@ankit)
|
260 |
* **Toolbox** Beta Test now displays recent public versions so it is easier to revert to an older version
|
3 |
Tags: caching, optimize, performance, pagespeed, seo, speed, image optimize, compress, object cache, redis, memcached, database cleaner
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 5.5.1
|
6 |
+
Stable tag: 3.5.2
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
|
247 |
|
248 |
== Changelog ==
|
249 |
|
250 |
+
= 3.5.2 - Oct 27 2020 =
|
251 |
+
* **CSS** `CSS Combine` is now compatible w/ inline noscript CSS. (@galbaras)
|
252 |
+
* **GUI** Added ability to manually dismiss the JS option reset message in v3.5.1 upgrade process. (#473917)
|
253 |
+
* 🐞**CSS** `CSS Excludes` setting will no longer lose items beginning w/ `#`. (@ankit)
|
254 |
+
* **API** New `litespeed_media_reset` API function for image editing purposes. (@Andro)
|
255 |
+
|
256 |
= 3.5.1 - Oct 20 2020 =
|
257 |
* **JS** Inline JS containing nonces can now be combined.
|
258 |
* **JS** Reset JS Combine/Defer to OFF when upgrading to avoid breaking sites.
|
260 |
* **JS** Added Inline JS Defer option back. (@ankit)
|
261 |
* **Page Optimize** Dropped Inline JS Minify option and merged the feature into JS Minify.
|
262 |
* **JS** Pre-added jQuery to the default JS excludes/defer list for better layout compatibility for new users.
|
263 |
+
* **JS** Excluded Stripe/PayPal/Google Map from JS optimization. (@FPCSJames)
|
264 |
* **JS** Allowed excluded JS to still be HTTP2 pushed. (@joshua)
|
265 |
* **CCSS** Critical CSS now can avoid network pollution from other sites. (@ankit)
|
266 |
* **Toolbox** Beta Test now displays recent public versions so it is easier to revert to an older version
|
src/admin-display.cls.php
CHANGED
@@ -20,6 +20,7 @@ class Admin_Display extends Base {
|
|
20 |
const NOTICE_RED = 'notice notice-error';
|
21 |
const NOTICE_YELLOW = 'notice notice-warning';
|
22 |
const DB_MSG = 'messages';
|
|
|
23 |
|
24 |
const PURGEBY_CAT = '0';
|
25 |
const PURGEBY_PID = '1';
|
@@ -316,8 +317,15 @@ class Admin_Display extends Base {
|
|
316 |
* @param string $str The notice message.
|
317 |
* @return string The built notice html.
|
318 |
*/
|
319 |
-
public static function build_notice($color, $str) {
|
320 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
}
|
322 |
|
323 |
/**
|
@@ -326,8 +334,8 @@ class Admin_Display extends Base {
|
|
326 |
* @since 1.6.5
|
327 |
* @access public
|
328 |
*/
|
329 |
-
public static function info( $msg, $echo = false ) {
|
330 |
-
self::add_notice( self::NOTICE_BLUE, $msg, $echo );
|
331 |
}
|
332 |
|
333 |
/**
|
@@ -336,8 +344,8 @@ class Admin_Display extends Base {
|
|
336 |
* @since 1.6.5
|
337 |
* @access public
|
338 |
*/
|
339 |
-
public static function note( $msg, $echo = false ) {
|
340 |
-
self::add_notice( self::NOTICE_YELLOW, $msg, $echo );
|
341 |
}
|
342 |
|
343 |
/**
|
@@ -346,8 +354,8 @@ class Admin_Display extends Base {
|
|
346 |
* @since 1.6
|
347 |
* @access public
|
348 |
*/
|
349 |
-
public static function succeed( $msg, $echo = false ) {
|
350 |
-
self::add_notice( self::NOTICE_GREEN, $msg, $echo );
|
351 |
}
|
352 |
|
353 |
/**
|
@@ -356,8 +364,8 @@ class Admin_Display extends Base {
|
|
356 |
* @since 1.6
|
357 |
* @access public
|
358 |
*/
|
359 |
-
public static function error( $msg, $echo = false ) {
|
360 |
-
self::add_notice( self::NOTICE_RED, $msg, $echo );
|
361 |
}
|
362 |
|
363 |
/**
|
@@ -366,7 +374,7 @@ class Admin_Display extends Base {
|
|
366 |
* @since 1.0.7
|
367 |
* @access public
|
368 |
*/
|
369 |
-
public static function add_notice( $color, $msg, $echo = false ) {
|
370 |
// Bypass adding for CLI or cron
|
371 |
if ( defined( 'LITESPEED_CLI' ) || defined( 'DOING_CRON' ) ) {
|
372 |
// WP CLI will show the info directly
|
@@ -387,17 +395,20 @@ class Admin_Display extends Base {
|
|
387 |
return;
|
388 |
}
|
389 |
|
390 |
-
$
|
|
|
|
|
391 |
|
392 |
if ( is_array($msg) ) {
|
393 |
foreach ($msg as $str) {
|
394 |
-
$messages[] = self::build_notice($color, $str);
|
395 |
}
|
396 |
}
|
397 |
else {
|
398 |
-
$messages[] = self::build_notice($color, $msg);
|
399 |
}
|
400 |
-
|
|
|
401 |
}
|
402 |
|
403 |
/**
|
@@ -418,11 +429,9 @@ class Admin_Display extends Base {
|
|
418 |
|
419 |
// One time msg
|
420 |
$messages = self::get_option( self::DB_MSG );
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
$added_thickbox = false;
|
425 |
-
foreach ($messages as $msg) {
|
426 |
// Added for popup links
|
427 |
if ( strpos( $msg, 'TB_iframe' ) && ! $added_thickbox ) {
|
428 |
add_thickbox();
|
@@ -433,6 +442,25 @@ class Admin_Display extends Base {
|
|
433 |
}
|
434 |
self::delete_option( self::DB_MSG );
|
435 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
436 |
if( empty( $_GET[ 'page' ] ) || strpos( $_GET[ 'page' ], 'litespeed' ) !== 0 ) {
|
437 |
global $pagenow;
|
438 |
if ( $pagenow != 'plugins.php' ) { // && $pagenow != 'index.php'
|
@@ -462,6 +490,31 @@ class Admin_Display extends Base {
|
|
462 |
Cloud::get_instance()->news();
|
463 |
}
|
464 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
465 |
/**
|
466 |
* Hooked to the in_widget_form action.
|
467 |
* Appends LiteSpeed Cache settings to the widget edit settings screen.
|
20 |
const NOTICE_RED = 'notice notice-error';
|
21 |
const NOTICE_YELLOW = 'notice notice-warning';
|
22 |
const DB_MSG = 'messages';
|
23 |
+
const DB_MSG_PIN = 'msg_pin';
|
24 |
|
25 |
const PURGEBY_CAT = '0';
|
26 |
const PURGEBY_PID = '1';
|
317 |
* @param string $str The notice message.
|
318 |
* @return string The built notice html.
|
319 |
*/
|
320 |
+
public static function build_notice( $color, $str, $irremovable = false ) {
|
321 |
+
$cls = $color;
|
322 |
+
if ( $irremovable ) {
|
323 |
+
$cls .= ' litespeed-irremovable';
|
324 |
+
}
|
325 |
+
else {
|
326 |
+
$cls .= ' is-dismissible';
|
327 |
+
}
|
328 |
+
return '<div class="' . $cls . '"><p>'. $str . '</p></div>';
|
329 |
}
|
330 |
|
331 |
/**
|
334 |
* @since 1.6.5
|
335 |
* @access public
|
336 |
*/
|
337 |
+
public static function info( $msg, $echo = false, $irremovable = false ) {
|
338 |
+
self::add_notice( self::NOTICE_BLUE, $msg, $echo, $irremovable );
|
339 |
}
|
340 |
|
341 |
/**
|
344 |
* @since 1.6.5
|
345 |
* @access public
|
346 |
*/
|
347 |
+
public static function note( $msg, $echo = false, $irremovable = false ) {
|
348 |
+
self::add_notice( self::NOTICE_YELLOW, $msg, $echo, $irremovable );
|
349 |
}
|
350 |
|
351 |
/**
|
354 |
* @since 1.6
|
355 |
* @access public
|
356 |
*/
|
357 |
+
public static function succeed( $msg, $echo = false, $irremovable = false ) {
|
358 |
+
self::add_notice( self::NOTICE_GREEN, $msg, $echo, $irremovable );
|
359 |
}
|
360 |
|
361 |
/**
|
364 |
* @since 1.6
|
365 |
* @access public
|
366 |
*/
|
367 |
+
public static function error( $msg, $echo = false, $irremovable = false ) {
|
368 |
+
self::add_notice( self::NOTICE_RED, $msg, $echo, $irremovable );
|
369 |
}
|
370 |
|
371 |
/**
|
374 |
* @since 1.0.7
|
375 |
* @access public
|
376 |
*/
|
377 |
+
public static function add_notice( $color, $msg, $echo = false, $irremovable = false ) {
|
378 |
// Bypass adding for CLI or cron
|
379 |
if ( defined( 'LITESPEED_CLI' ) || defined( 'DOING_CRON' ) ) {
|
380 |
// WP CLI will show the info directly
|
395 |
return;
|
396 |
}
|
397 |
|
398 |
+
$msg_name = $irremovable ? self::DB_MSG_PIN : self::DB_MSG;
|
399 |
+
|
400 |
+
$messages = self::get_option( $msg_name );
|
401 |
|
402 |
if ( is_array($msg) ) {
|
403 |
foreach ($msg as $str) {
|
404 |
+
$messages[] = self::build_notice( $color, $str, $irremovable );
|
405 |
}
|
406 |
}
|
407 |
else {
|
408 |
+
$messages[] = self::build_notice( $color, $msg, $irremovable );
|
409 |
}
|
410 |
+
$messages = array_unique( $messages );
|
411 |
+
self::update_option( $msg_name, $messages );
|
412 |
}
|
413 |
|
414 |
/**
|
429 |
|
430 |
// One time msg
|
431 |
$messages = self::get_option( self::DB_MSG );
|
432 |
+
$added_thickbox = false;
|
433 |
+
if( is_array( $messages ) ) {
|
434 |
+
foreach ( $messages as $msg ) {
|
|
|
|
|
435 |
// Added for popup links
|
436 |
if ( strpos( $msg, 'TB_iframe' ) && ! $added_thickbox ) {
|
437 |
add_thickbox();
|
442 |
}
|
443 |
self::delete_option( self::DB_MSG );
|
444 |
|
445 |
+
// Pinned msg
|
446 |
+
$messages = self::get_option( self::DB_MSG_PIN );
|
447 |
+
if( is_array( $messages ) ) {
|
448 |
+
foreach ( $messages as $k => $msg ) {
|
449 |
+
// Added for popup links
|
450 |
+
if ( strpos( $msg, 'TB_iframe' ) && ! $added_thickbox ) {
|
451 |
+
add_thickbox();
|
452 |
+
$added_thickbox = true;
|
453 |
+
}
|
454 |
+
|
455 |
+
// Append close btn
|
456 |
+
if ( substr( $msg, -6 ) == '</div>' ) {
|
457 |
+
$link = Utility::build_url( Core::ACTION_DISMISS, GUI::TYPE_DISMISS_PIN, false, null, array( 'msgid' => $k ) );
|
458 |
+
$msg = substr( $msg, 0, -6 ) . '<p><a href="' . $link . '" class="button litespeed-btn-primary litespeed-btn-mini">' . __( 'Dismiss', 'litespeed-cache' ) . '</a>' . '</p></div>';
|
459 |
+
}
|
460 |
+
echo $msg;
|
461 |
+
}
|
462 |
+
}
|
463 |
+
|
464 |
if( empty( $_GET[ 'page' ] ) || strpos( $_GET[ 'page' ], 'litespeed' ) !== 0 ) {
|
465 |
global $pagenow;
|
466 |
if ( $pagenow != 'plugins.php' ) { // && $pagenow != 'index.php'
|
490 |
Cloud::get_instance()->news();
|
491 |
}
|
492 |
|
493 |
+
/**
|
494 |
+
* Dismiss pinned msg
|
495 |
+
*
|
496 |
+
* @since 3.5.2
|
497 |
+
* @access public
|
498 |
+
*/
|
499 |
+
public static function dismiss_pin() {
|
500 |
+
if ( ! isset( $_GET[ 'msgid' ] ) ) {
|
501 |
+
return;
|
502 |
+
}
|
503 |
+
|
504 |
+
$messages = self::get_option( self::DB_MSG_PIN );
|
505 |
+
if ( empty( $messages[ $_GET[ 'msgid' ] ] ) ) {
|
506 |
+
return;
|
507 |
+
}
|
508 |
+
|
509 |
+
unset( $messages[ $_GET[ 'msgid' ] ] );
|
510 |
+
if ( ! $messages ) {
|
511 |
+
self::delete_option( self::DB_MSG_PIN );
|
512 |
+
}
|
513 |
+
else {
|
514 |
+
self::update_option( self::DB_MSG_PIN, $messages );
|
515 |
+
}
|
516 |
+
}
|
517 |
+
|
518 |
/**
|
519 |
* Hooked to the in_widget_form action.
|
520 |
* Appends LiteSpeed Cache settings to the widget edit settings screen.
|
src/api.cls.php
CHANGED
@@ -137,6 +137,11 @@ class API extends Base {
|
|
137 |
*/
|
138 |
add_filter( 'litespeed_is_from_cloud', __NAMESPACE__ . '\Cloud::is_from_cloud' ); // Check if current request is from QC (usally its to check REST access) // @see https://wordpress.org/support/topic/image-optimization-not-working-3/
|
139 |
|
|
|
|
|
|
|
|
|
|
|
140 |
/**
|
141 |
* GUI
|
142 |
*/
|
137 |
*/
|
138 |
add_filter( 'litespeed_is_from_cloud', __NAMESPACE__ . '\Cloud::is_from_cloud' ); // Check if current request is from QC (usally its to check REST access) // @see https://wordpress.org/support/topic/image-optimization-not-working-3/
|
139 |
|
140 |
+
/**
|
141 |
+
* Media
|
142 |
+
*/
|
143 |
+
add_action( 'litespeed_media_reset', __NAMESPACE__ . '\Media::delete_attachment' ); // Reset one media row
|
144 |
+
|
145 |
/**
|
146 |
* GUI
|
147 |
*/
|
src/base.cls.php
CHANGED
@@ -837,10 +837,10 @@ class Base extends Instance {
|
|
837 |
self::O_CACHE_FORCE_URI => 'relative',
|
838 |
self::O_CACHE_FORCE_PUB_URI => 'relative',
|
839 |
self::O_CACHE_EXC => 'relative',
|
840 |
-
self::O_OPTM_CSS_EXC => 'uri',
|
841 |
-
self::O_OPTM_JS_EXC => 'uri',
|
842 |
self::O_OPTM_EXC => 'relative',
|
843 |
-
self::O_OPTM_JS_DEFER_EXC => 'uri',
|
844 |
self::O_OPTM_DNS_PREFETCH => 'domain',
|
845 |
self::O_OPTM_CCSS_SEP_URI => 'uri',
|
846 |
self::O_CDN_ORI => 'noprotocol', // `Original URLs`
|
837 |
self::O_CACHE_FORCE_URI => 'relative',
|
838 |
self::O_CACHE_FORCE_PUB_URI => 'relative',
|
839 |
self::O_CACHE_EXC => 'relative',
|
840 |
+
// self::O_OPTM_CSS_EXC => 'uri', // Need to comment out for inline & external CSS
|
841 |
+
// self::O_OPTM_JS_EXC => 'uri',
|
842 |
self::O_OPTM_EXC => 'relative',
|
843 |
+
// self::O_OPTM_JS_DEFER_EXC => 'uri',
|
844 |
self::O_OPTM_DNS_PREFETCH => 'domain',
|
845 |
self::O_OPTM_CCSS_SEP_URI => 'uri',
|
846 |
self::O_CDN_ORI => 'noprotocol', // `Original URLs`
|
src/data.upgrade.func.php
CHANGED
@@ -10,6 +10,7 @@ defined( 'WPINC' ) || exit;
|
|
10 |
|
11 |
use LiteSpeed\Debug2;
|
12 |
use LiteSpeed\Conf;
|
|
|
13 |
|
14 |
/**
|
15 |
* Append jQuery to JS optm exclude list for max compatibility
|
@@ -27,13 +28,21 @@ function litespeed_update_3_5() {
|
|
27 |
$__conf->update( $v, $curr_setting );
|
28 |
}
|
29 |
// Turn off JS Combine and defer
|
|
|
30 |
foreach ( array( 'optm-js_comb', 'optm-js_defer', 'optm-js_inline_defer' ) as $v ) {
|
31 |
$curr_setting = Conf::val( $v );
|
32 |
if ( ! $curr_setting ) {
|
33 |
continue;
|
34 |
}
|
|
|
35 |
$__conf->update( $v, false );
|
36 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
}
|
38 |
|
39 |
/**
|
10 |
|
11 |
use LiteSpeed\Debug2;
|
12 |
use LiteSpeed\Conf;
|
13 |
+
use LiteSpeed\Admin_Display;
|
14 |
|
15 |
/**
|
16 |
* Append jQuery to JS optm exclude list for max compatibility
|
28 |
$__conf->update( $v, $curr_setting );
|
29 |
}
|
30 |
// Turn off JS Combine and defer
|
31 |
+
$show_msg = false;
|
32 |
foreach ( array( 'optm-js_comb', 'optm-js_defer', 'optm-js_inline_defer' ) as $v ) {
|
33 |
$curr_setting = Conf::val( $v );
|
34 |
if ( ! $curr_setting ) {
|
35 |
continue;
|
36 |
}
|
37 |
+
$show_msg = true;
|
38 |
$__conf->update( $v, false );
|
39 |
}
|
40 |
+
|
41 |
+
if ( $show_msg ) {
|
42 |
+
$msg = sprintf( __( '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.', 'litespeed-cache' ), '<code>' . __( 'JS Combine', 'litespeed-cache' ) . '</code>', '<code>' . __( 'JS Defer', 'litespeed-cache' ) . '</code>' );
|
43 |
+
$msg .= sprintf( ' <a href="admin.php?page=litespeed-page_optm#settings_js">%s</a>.', __( 'Click here to settings', 'litespeed-cache' ) );
|
44 |
+
Admin_Display::info( $msg, false, true );
|
45 |
+
}
|
46 |
}
|
47 |
|
48 |
/**
|
src/gui.cls.php
CHANGED
@@ -27,6 +27,7 @@ class GUI extends Base {
|
|
27 |
const TYPE_DISMISS_WHM = 'whm';
|
28 |
const TYPE_DISMISS_EXPIRESDEFAULT = 'ExpiresDefault';
|
29 |
const TYPE_DISMISS_PROMO = 'promo';
|
|
|
30 |
|
31 |
const WHM_MSG = 'lscwp_whm_install';
|
32 |
const WHM_MSG_VAL = 'whm_install';
|
@@ -177,7 +178,11 @@ class GUI extends Base {
|
|
177 |
self::update_option( Admin_Display::DB_DISMISS_MSG, Admin_Display::RULECONFLICT_DISMISSED );
|
178 |
break;
|
179 |
|
180 |
-
case self::
|
|
|
|
|
|
|
|
|
181 |
if ( empty( $_GET[ 'promo_tag' ] ) ) {
|
182 |
break;
|
183 |
}
|
27 |
const TYPE_DISMISS_WHM = 'whm';
|
28 |
const TYPE_DISMISS_EXPIRESDEFAULT = 'ExpiresDefault';
|
29 |
const TYPE_DISMISS_PROMO = 'promo';
|
30 |
+
const TYPE_DISMISS_PIN = 'pin';
|
31 |
|
32 |
const WHM_MSG = 'lscwp_whm_install';
|
33 |
const WHM_MSG_VAL = 'whm_install';
|
178 |
self::update_option( Admin_Display::DB_DISMISS_MSG, Admin_Display::RULECONFLICT_DISMISSED );
|
179 |
break;
|
180 |
|
181 |
+
case self::TYPE_DISMISS_PIN:
|
182 |
+
admin_display::dismiss_pin();
|
183 |
+
break;
|
184 |
+
|
185 |
+
case self::TYPE_DISMISS_PROMO:
|
186 |
if ( empty( $_GET[ 'promo_tag' ] ) ) {
|
187 |
break;
|
188 |
}
|
src/media.cls.php
CHANGED
@@ -122,7 +122,7 @@ class Media extends Instance {
|
|
122 |
add_action( 'litespeed_media_row', array( $this, 'media_row_con' ) );
|
123 |
|
124 |
// Hook to attachment delete action
|
125 |
-
add_action( 'delete_attachment',
|
126 |
}
|
127 |
|
128 |
/**
|
@@ -131,7 +131,7 @@ class Media extends Instance {
|
|
131 |
* @since 2.4.3
|
132 |
* @access public
|
133 |
*/
|
134 |
-
public function delete_attachment( $post_id ) {
|
135 |
if ( ! Data::get_instance()->tb_exist( 'img_optm' ) ) {
|
136 |
return;
|
137 |
}
|
122 |
add_action( 'litespeed_media_row', array( $this, 'media_row_con' ) );
|
123 |
|
124 |
// Hook to attachment delete action
|
125 |
+
add_action( 'delete_attachment', __CLASS__ . '::delete_attachment' );
|
126 |
}
|
127 |
|
128 |
/**
|
131 |
* @since 2.4.3
|
132 |
* @access public
|
133 |
*/
|
134 |
+
public static function delete_attachment( $post_id ) {
|
135 |
if ( ! Data::get_instance()->tb_exist( 'img_optm' ) ) {
|
136 |
return;
|
137 |
}
|
src/optimize.cls.php
CHANGED
@@ -1012,7 +1012,7 @@ class Optimize extends Base {
|
|
1012 |
// $dom->load( $content );return $val;
|
1013 |
// $items = $dom->find( 'link' );
|
1014 |
|
1015 |
-
$content = preg_replace( array( '#<!--.*-->#sU', '#<script([^>]*)>.*</script>#isU' ), '', $this->content );
|
1016 |
preg_match_all( '#<link ([^>]+)/?>|<style([^>]*)>([^<]+)</style>#isU', $content, $matches, PREG_SET_ORDER );
|
1017 |
|
1018 |
foreach ( $matches as $match ) {
|
1012 |
// $dom->load( $content );return $val;
|
1013 |
// $items = $dom->find( 'link' );
|
1014 |
|
1015 |
+
$content = preg_replace( array( '#<!--.*-->#sU', '#<script([^>]*)>.*</script>#isU', '#<noscript([^>]*)>.*</noscript>#isU' ), '', $this->content );
|
1016 |
preg_match_all( '#<link ([^>]+)/?>|<style([^>]*)>([^<]+)</style>#isU', $content, $matches, PREG_SET_ORDER );
|
1017 |
|
1018 |
foreach ( $matches as $match ) {
|
tpl/page_optm/entry.tpl.php
CHANGED
@@ -5,11 +5,11 @@ defined( 'WPINC' ) || exit ;
|
|
5 |
$menu_list = array(
|
6 |
'settings_css' => __( 'CSS Settings', 'litespeed-cache' ),
|
7 |
'settings_js' => __( 'JS Settings', 'litespeed-cache' ),
|
8 |
-
'settings_html' => __( 'Optimization
|
9 |
'settings_media' => __( 'Media Settings', 'litespeed-cache' ),
|
10 |
'settings_media_exc' => __( 'Media Excludes', 'litespeed-cache' ),
|
11 |
-
'settings_localization' => __( 'Localization
|
12 |
-
'settings_tuning' => __( 'Tuning
|
13 |
) ;
|
14 |
|
15 |
?>
|
5 |
$menu_list = array(
|
6 |
'settings_css' => __( 'CSS Settings', 'litespeed-cache' ),
|
7 |
'settings_js' => __( 'JS Settings', 'litespeed-cache' ),
|
8 |
+
'settings_html' => __( 'Optimization', 'litespeed-cache' ),
|
9 |
'settings_media' => __( 'Media Settings', 'litespeed-cache' ),
|
10 |
'settings_media_exc' => __( 'Media Excludes', 'litespeed-cache' ),
|
11 |
+
'settings_localization' => __( 'Localization', 'litespeed-cache' ),
|
12 |
+
'settings_tuning' => __( 'Tuning', 'litespeed-cache' ),
|
13 |
) ;
|
14 |
|
15 |
?>
|
tpl/page_optm/settings_css.tpl.php
CHANGED
@@ -65,12 +65,13 @@ $closest_server = Cloud::get_summary( 'server.' . Cloud::SVC_CCSS );
|
|
65 |
<tr class="litespeed-hide">
|
66 |
<th class="litespeed-padding-left">
|
67 |
<?php $id = Base::O_OPTM_UCSS; ?>
|
68 |
-
<?php $this->title( $id ); ?>
|
69 |
</th>
|
70 |
<td>
|
71 |
<?php $this->build_switch( $id ); ?>
|
72 |
<div class="litespeed-desc">
|
73 |
<?php echo __( 'Use QUIC.cloud online service to generate unique CSS.', 'litespeed-cache' ); ?>
|
|
|
74 |
</div>
|
75 |
</td>
|
76 |
</tr>
|
65 |
<tr class="litespeed-hide">
|
66 |
<th class="litespeed-padding-left">
|
67 |
<?php $id = Base::O_OPTM_UCSS; ?>
|
68 |
+
<?php $this->title( $id ); ?>
|
69 |
</th>
|
70 |
<td>
|
71 |
<?php $this->build_switch( $id ); ?>
|
72 |
<div class="litespeed-desc">
|
73 |
<?php echo __( 'Use QUIC.cloud online service to generate unique CSS.', 'litespeed-cache' ); ?>
|
74 |
+
<?php echo __( 'This will drop the unused CSS on each page.', 'litespeed-cache' ); ?>
|
75 |
</div>
|
76 |
</td>
|
77 |
</tr>
|