Version Description
- Jan 11 2022 =
-
Page Optimize Dropped
Inline Lazy Load Images Library
option. Now will always inline lazyload library. (Ankit) - 3rd Prevented JavaScript files from being appended to Rank Math SEO sitemap.
- Purge Dropped default stale purge when purging a post.
- Cloud Dropped unused API calls.
- Cloud Dropped redundant IP validation in API calls.
Download this release
Release Info
Developer | LiteSpeedTech |
Plugin | LiteSpeed Cache |
Version | 4.4.7 |
Comparing to | |
See all releases |
Code changes from version 4.4.6 to 4.4.7
- data/const.default.ini +0 -3
- lang/litespeed-cache.pot +83 -92
- litespeed-cache.php +2 -2
- readme.txt +14 -7
- src/base.cls.php +0 -2
- src/css.cls.php +0 -56
- src/data.upgrade.func.php +1 -1
- src/gui.cls.php +2 -2
- src/lang.cls.php +0 -1
- src/media.cls.php +1 -7
- src/purge.cls.php +1 -1
- src/rest.cls.php +3 -61
- tpl/page_optm/settings_media.tpl.php +0 -15
- tpl/toolbox/beta_test.tpl.php +1 -1
data/const.default.ini
CHANGED
@@ -495,9 +495,6 @@ media-iframe_lazy = false
|
|
495 |
; O_MEDIA_ADD_MISSING_SIZES
|
496 |
media-add_missing_sizes = false
|
497 |
|
498 |
-
; O_MEDIA_LAZYJS_INLINE
|
499 |
-
media-lazyjs_inline = false
|
500 |
-
|
501 |
; O_MEDIA_LAZY_EXC
|
502 |
media-lazy_exc = ''
|
503 |
|
495 |
; O_MEDIA_ADD_MISSING_SIZES
|
496 |
media-add_missing_sizes = false
|
497 |
|
|
|
|
|
|
|
498 |
; O_MEDIA_LAZY_EXC
|
499 |
media-lazy_exc = ''
|
500 |
|
lang/litespeed-cache.pot
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
# Copyright (C)
|
2 |
# This file is distributed under the same license as the LiteSpeed Cache package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: LiteSpeed Cache 4.4.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
|
7 |
-
"POT-Creation-Date:
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
-
"PO-Revision-Date:
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
@@ -66,7 +66,7 @@ msgstr ""
|
|
66 |
msgid "Database"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#: src/admin-display.cls.php:129 src/lang.cls.php:
|
70 |
msgid "Crawler"
|
71 |
msgstr ""
|
72 |
|
@@ -401,11 +401,11 @@ msgstr ""
|
|
401 |
msgid "Queue cleared successfully."
|
402 |
msgstr ""
|
403 |
|
404 |
-
#: src/css.cls.php:
|
405 |
msgid "%1$s %2$s files left in queue"
|
406 |
msgstr ""
|
407 |
|
408 |
-
#: src/css.cls.php:
|
409 |
msgid "Cancel"
|
410 |
msgstr ""
|
411 |
|
@@ -1395,259 +1395,255 @@ msgid "Add Missing Sizes"
|
|
1395 |
msgstr ""
|
1396 |
|
1397 |
#: src/lang.cls.php:165
|
1398 |
-
msgid "Inline Lazy Load Images Library"
|
1399 |
-
msgstr ""
|
1400 |
-
|
1401 |
-
#: src/lang.cls.php:166
|
1402 |
msgid "Auto Request Cron"
|
1403 |
msgstr ""
|
1404 |
|
1405 |
-
#: src/lang.cls.php:
|
1406 |
msgid "Auto Pull Cron"
|
1407 |
msgstr ""
|
1408 |
|
1409 |
-
#: src/lang.cls.php:
|
1410 |
msgid "Optimize Original Images"
|
1411 |
msgstr ""
|
1412 |
|
1413 |
-
#: src/lang.cls.php:
|
1414 |
msgid "Remove Original Backups"
|
1415 |
msgstr ""
|
1416 |
|
1417 |
-
#: src/lang.cls.php:
|
1418 |
msgid "Create WebP Versions"
|
1419 |
msgstr ""
|
1420 |
|
1421 |
-
#: src/lang.cls.php:
|
1422 |
msgid "Optimize Losslessly"
|
1423 |
msgstr ""
|
1424 |
|
1425 |
-
#: src/lang.cls.php:
|
1426 |
msgid "Preserve EXIF/XMP data"
|
1427 |
msgstr ""
|
1428 |
|
1429 |
-
#: src/lang.cls.php:
|
1430 |
msgid "WebP Attribute To Replace"
|
1431 |
msgstr ""
|
1432 |
|
1433 |
-
#: src/lang.cls.php:
|
1434 |
msgid "WebP For Extra srcset"
|
1435 |
msgstr ""
|
1436 |
|
1437 |
-
#: src/lang.cls.php:
|
1438 |
msgid "WordPress Image Quality Control"
|
1439 |
msgstr ""
|
1440 |
|
1441 |
-
#: src/lang.cls.php:
|
1442 |
msgid "Enable ESI"
|
1443 |
msgstr ""
|
1444 |
|
1445 |
-
#: src/lang.cls.php:
|
1446 |
msgid "Cache Admin Bar"
|
1447 |
msgstr ""
|
1448 |
|
1449 |
-
#: src/lang.cls.php:
|
1450 |
msgid "Cache Comment Form"
|
1451 |
msgstr ""
|
1452 |
|
1453 |
-
#: src/lang.cls.php:
|
1454 |
msgid "ESI Nonces"
|
1455 |
msgstr ""
|
1456 |
|
1457 |
-
#: src/lang.cls.php:
|
1458 |
#: tpl/page_optm/settings_css.tpl.php:219
|
1459 |
msgid "Vary Group"
|
1460 |
msgstr ""
|
1461 |
|
1462 |
-
#: src/lang.cls.php:
|
1463 |
msgid "Purge All Hooks"
|
1464 |
msgstr ""
|
1465 |
|
1466 |
-
#: src/lang.cls.php:
|
1467 |
msgid "Improve HTTP/HTTPS Compatibility"
|
1468 |
msgstr ""
|
1469 |
|
1470 |
-
#: src/lang.cls.php:
|
1471 |
msgid "Instant Click"
|
1472 |
msgstr ""
|
1473 |
|
1474 |
-
#: src/lang.cls.php:
|
1475 |
msgid "Do Not Cache Cookies"
|
1476 |
msgstr ""
|
1477 |
|
1478 |
-
#: src/lang.cls.php:
|
1479 |
msgid "Do Not Cache User Agents"
|
1480 |
msgstr ""
|
1481 |
|
1482 |
-
#: src/lang.cls.php:
|
1483 |
msgid "Login Cookie"
|
1484 |
msgstr ""
|
1485 |
|
1486 |
-
#: src/lang.cls.php:
|
1487 |
msgid "Image WebP Replacement"
|
1488 |
msgstr ""
|
1489 |
|
1490 |
-
#: src/lang.cls.php:
|
1491 |
msgid "Frontend Heartbeat Control"
|
1492 |
msgstr ""
|
1493 |
|
1494 |
-
#: src/lang.cls.php:
|
1495 |
msgid "Frontend Heartbeat TTL"
|
1496 |
msgstr ""
|
1497 |
|
1498 |
-
#: src/lang.cls.php:
|
1499 |
msgid "Backend Heartbeat Control"
|
1500 |
msgstr ""
|
1501 |
|
1502 |
-
#: src/lang.cls.php:
|
1503 |
msgid "Backend Heartbeat TTL"
|
1504 |
msgstr ""
|
1505 |
|
1506 |
-
#: src/lang.cls.php:
|
1507 |
msgid "Editor Heartbeat"
|
1508 |
msgstr ""
|
1509 |
|
1510 |
-
#: src/lang.cls.php:
|
1511 |
msgid "Editor Heartbeat TTL"
|
1512 |
msgstr ""
|
1513 |
|
1514 |
-
#: src/lang.cls.php:
|
1515 |
msgid "QUIC.cloud CDN"
|
1516 |
msgstr ""
|
1517 |
|
1518 |
-
#: src/lang.cls.php:
|
1519 |
msgid "Use CDN Mapping"
|
1520 |
msgstr ""
|
1521 |
|
1522 |
-
#: src/lang.cls.php:
|
1523 |
msgid "CDN URL"
|
1524 |
msgstr ""
|
1525 |
|
1526 |
-
#: src/lang.cls.php:
|
1527 |
msgid "Include Images"
|
1528 |
msgstr ""
|
1529 |
|
1530 |
-
#: src/lang.cls.php:
|
1531 |
msgid "Include CSS"
|
1532 |
msgstr ""
|
1533 |
|
1534 |
-
#: src/lang.cls.php:
|
1535 |
msgid "Include JS"
|
1536 |
msgstr ""
|
1537 |
|
1538 |
-
#: src/lang.cls.php:
|
1539 |
msgid "Include File Types"
|
1540 |
msgstr ""
|
1541 |
|
1542 |
-
#: src/lang.cls.php:
|
1543 |
msgid "HTML Attribute To Replace"
|
1544 |
msgstr ""
|
1545 |
|
1546 |
-
#: src/lang.cls.php:
|
1547 |
msgid "Original URLs"
|
1548 |
msgstr ""
|
1549 |
|
1550 |
-
#: src/lang.cls.php:
|
1551 |
msgid "Included Directories"
|
1552 |
msgstr ""
|
1553 |
|
1554 |
-
#: src/lang.cls.php:
|
1555 |
msgid "Exclude Path"
|
1556 |
msgstr ""
|
1557 |
|
1558 |
-
#: src/lang.cls.php:
|
1559 |
msgid "Cloudflare API"
|
1560 |
msgstr ""
|
1561 |
|
1562 |
-
#: src/lang.cls.php:
|
1563 |
msgid "Delay"
|
1564 |
msgstr ""
|
1565 |
|
1566 |
-
#: src/lang.cls.php:
|
1567 |
msgid "Run Duration"
|
1568 |
msgstr ""
|
1569 |
|
1570 |
-
#: src/lang.cls.php:
|
1571 |
msgid "Interval Between Runs"
|
1572 |
msgstr ""
|
1573 |
|
1574 |
-
#: src/lang.cls.php:
|
1575 |
msgid "Crawl Interval"
|
1576 |
msgstr ""
|
1577 |
|
1578 |
-
#: src/lang.cls.php:
|
1579 |
msgid "Threads"
|
1580 |
msgstr ""
|
1581 |
|
1582 |
-
#: src/lang.cls.php:
|
1583 |
msgid "Timeout"
|
1584 |
msgstr ""
|
1585 |
|
1586 |
-
#: src/lang.cls.php:
|
1587 |
msgid "Server Load Limit"
|
1588 |
msgstr ""
|
1589 |
|
1590 |
-
#: src/lang.cls.php:
|
1591 |
msgid "Role Simulation"
|
1592 |
msgstr ""
|
1593 |
|
1594 |
-
#: src/lang.cls.php:
|
1595 |
msgid "Cookie Simulation"
|
1596 |
msgstr ""
|
1597 |
|
1598 |
-
#: src/lang.cls.php:
|
1599 |
msgid "Custom Sitemap"
|
1600 |
msgstr ""
|
1601 |
|
1602 |
-
#: src/lang.cls.php:
|
1603 |
msgid "Drop Domain from Sitemap"
|
1604 |
msgstr ""
|
1605 |
|
1606 |
-
#: src/lang.cls.php:
|
1607 |
msgid "Sitemap Timeout"
|
1608 |
msgstr ""
|
1609 |
|
1610 |
-
#: src/lang.cls.php:
|
1611 |
msgid "Disable All Features"
|
1612 |
msgstr ""
|
1613 |
|
1614 |
-
#: src/lang.cls.php:
|
1615 |
msgid "Debug Log"
|
1616 |
msgstr ""
|
1617 |
|
1618 |
-
#: src/lang.cls.php:
|
1619 |
msgid "Admin IPs"
|
1620 |
msgstr ""
|
1621 |
|
1622 |
-
#: src/lang.cls.php:
|
1623 |
msgid "Debug Level"
|
1624 |
msgstr ""
|
1625 |
|
1626 |
-
#: src/lang.cls.php:
|
1627 |
msgid "Log File Size Limit"
|
1628 |
msgstr ""
|
1629 |
|
1630 |
-
#: src/lang.cls.php:
|
1631 |
msgid "Log Cookies"
|
1632 |
msgstr ""
|
1633 |
|
1634 |
-
#: src/lang.cls.php:
|
1635 |
msgid "Collapse Query Strings"
|
1636 |
msgstr ""
|
1637 |
|
1638 |
-
#: src/lang.cls.php:
|
1639 |
msgid "Debug URI Includes"
|
1640 |
msgstr ""
|
1641 |
|
1642 |
-
#: src/lang.cls.php:
|
1643 |
msgid "Debug URI Excludes"
|
1644 |
msgstr ""
|
1645 |
|
1646 |
-
#: src/lang.cls.php:
|
1647 |
msgid "Revisions Max Number"
|
1648 |
msgstr ""
|
1649 |
|
1650 |
-
#: src/lang.cls.php:
|
1651 |
msgid "Revisions Max Age"
|
1652 |
msgstr ""
|
1653 |
|
@@ -1960,7 +1956,7 @@ msgstr ""
|
|
1960 |
msgid "Dismiss this notice"
|
1961 |
msgstr ""
|
1962 |
|
1963 |
-
#. #-#-#-#-# litespeed-cache.pot (LiteSpeed Cache 4.4.
|
1964 |
#. Plugin Name of the plugin/theme
|
1965 |
#: tpl/banner/new_version.php:59 tpl/banner/new_version_dev.tpl.php:12
|
1966 |
#: tpl/cache/more_settings_tip.tpl.php:15 tpl/inc/admin_footer.php:8
|
@@ -1976,7 +1972,7 @@ msgid "New release %s is available now."
|
|
1976 |
msgstr ""
|
1977 |
|
1978 |
#: tpl/banner/new_version.php:71 tpl/banner/new_version_dev.tpl.php:24
|
1979 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
1980 |
msgid "Upgrade"
|
1981 |
msgstr ""
|
1982 |
|
@@ -4453,7 +4449,6 @@ msgstr ""
|
|
4453 |
|
4454 |
#: tpl/page_optm/settings_css.tpl.php:169
|
4455 |
#: tpl/page_optm/settings_html.tpl.php:129 tpl/page_optm/settings_js.tpl.php:67
|
4456 |
-
#: tpl/page_optm/settings_media.tpl.php:243
|
4457 |
msgid ""
|
4458 |
"This can improve your speed score in services like Pingdom, GTmetrix and "
|
4459 |
"PageSpeed."
|
@@ -4789,10 +4784,6 @@ msgstr ""
|
|
4789 |
msgid "Note: this option only works when %1$s is %2$s."
|
4790 |
msgstr ""
|
4791 |
|
4792 |
-
#: tpl/page_optm/settings_media.tpl.php:242
|
4793 |
-
msgid "Include the lazy load image JavaScript library inline."
|
4794 |
-
msgstr ""
|
4795 |
-
|
4796 |
#: tpl/page_optm/settings_media_exc.tpl.php:21
|
4797 |
msgid "Listed images will not be lazy loaded."
|
4798 |
msgstr ""
|
@@ -4916,58 +4907,58 @@ msgstr ""
|
|
4916 |
msgid "Selected roles will be excluded from all optimizations."
|
4917 |
msgstr ""
|
4918 |
|
4919 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4920 |
msgid "Try GitHub Version"
|
4921 |
msgstr ""
|
4922 |
|
4923 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4924 |
msgid ""
|
4925 |
"Use this section to switch plugin versions. To beta test a GitHub commit, "
|
4926 |
"enter the commit URL in the field below."
|
4927 |
msgstr ""
|
4928 |
|
4929 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4930 |
msgid "Example"
|
4931 |
msgstr ""
|
4932 |
|
4933 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4934 |
msgid "Use latest GitHub Dev commit"
|
4935 |
msgstr ""
|
4936 |
|
4937 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4938 |
msgid "Use latest GitHub Master commit"
|
4939 |
msgstr ""
|
4940 |
|
4941 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4942 |
msgid "Use latest WordPress release version"
|
4943 |
msgstr ""
|
4944 |
|
4945 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4946 |
msgid "OR"
|
4947 |
msgstr ""
|
4948 |
|
4949 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4950 |
msgid ""
|
4951 |
"Downgrade not recommended. May cause fatal error due to refactored code."
|
4952 |
msgstr ""
|
4953 |
|
4954 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4955 |
msgid ""
|
4956 |
"Press the %s button to use the most recent GitHub commit. Master is for "
|
4957 |
"release candidate & Dev is for experimental testing."
|
4958 |
msgstr ""
|
4959 |
|
4960 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4961 |
msgid "Use latest GitHub Dev/Master commit"
|
4962 |
msgstr ""
|
4963 |
|
4964 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4965 |
msgid ""
|
4966 |
"Press the %s button to stop beta testing and go back to the current release "
|
4967 |
"from the WordPress Plugin Directory."
|
4968 |
msgstr ""
|
4969 |
|
4970 |
-
#: tpl/toolbox/beta_test.tpl.php:
|
4971 |
msgid ""
|
4972 |
"In order to avoid an upgrade error, you must be using %1$s or later before "
|
4973 |
"you can upgrade to %2$s versions."
|
1 |
+
# Copyright (C) 2022 LiteSpeed Cache
|
2 |
# This file is distributed under the same license as the LiteSpeed Cache package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: LiteSpeed Cache 4.4.7\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
|
7 |
+
"POT-Creation-Date: 2022-01-10 15:45:34+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
11 |
+
"PO-Revision-Date: 2022-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
66 |
msgid "Database"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: src/admin-display.cls.php:129 src/lang.cls.php:208
|
70 |
msgid "Crawler"
|
71 |
msgstr ""
|
72 |
|
401 |
msgid "Queue cleared successfully."
|
402 |
msgstr ""
|
403 |
|
404 |
+
#: src/css.cls.php:525
|
405 |
msgid "%1$s %2$s files left in queue"
|
406 |
msgstr ""
|
407 |
|
408 |
+
#: src/css.cls.php:526
|
409 |
msgid "Cancel"
|
410 |
msgstr ""
|
411 |
|
1395 |
msgstr ""
|
1396 |
|
1397 |
#: src/lang.cls.php:165
|
|
|
|
|
|
|
|
|
1398 |
msgid "Auto Request Cron"
|
1399 |
msgstr ""
|
1400 |
|
1401 |
+
#: src/lang.cls.php:166
|
1402 |
msgid "Auto Pull Cron"
|
1403 |
msgstr ""
|
1404 |
|
1405 |
+
#: src/lang.cls.php:167
|
1406 |
msgid "Optimize Original Images"
|
1407 |
msgstr ""
|
1408 |
|
1409 |
+
#: src/lang.cls.php:168
|
1410 |
msgid "Remove Original Backups"
|
1411 |
msgstr ""
|
1412 |
|
1413 |
+
#: src/lang.cls.php:169
|
1414 |
msgid "Create WebP Versions"
|
1415 |
msgstr ""
|
1416 |
|
1417 |
+
#: src/lang.cls.php:170
|
1418 |
msgid "Optimize Losslessly"
|
1419 |
msgstr ""
|
1420 |
|
1421 |
+
#: src/lang.cls.php:171
|
1422 |
msgid "Preserve EXIF/XMP data"
|
1423 |
msgstr ""
|
1424 |
|
1425 |
+
#: src/lang.cls.php:172
|
1426 |
msgid "WebP Attribute To Replace"
|
1427 |
msgstr ""
|
1428 |
|
1429 |
+
#: src/lang.cls.php:173
|
1430 |
msgid "WebP For Extra srcset"
|
1431 |
msgstr ""
|
1432 |
|
1433 |
+
#: src/lang.cls.php:174
|
1434 |
msgid "WordPress Image Quality Control"
|
1435 |
msgstr ""
|
1436 |
|
1437 |
+
#: src/lang.cls.php:175 tpl/esi_widget_edit.php:36
|
1438 |
msgid "Enable ESI"
|
1439 |
msgstr ""
|
1440 |
|
1441 |
+
#: src/lang.cls.php:176
|
1442 |
msgid "Cache Admin Bar"
|
1443 |
msgstr ""
|
1444 |
|
1445 |
+
#: src/lang.cls.php:177
|
1446 |
msgid "Cache Comment Form"
|
1447 |
msgstr ""
|
1448 |
|
1449 |
+
#: src/lang.cls.php:178
|
1450 |
msgid "ESI Nonces"
|
1451 |
msgstr ""
|
1452 |
|
1453 |
+
#: src/lang.cls.php:179 tpl/page_optm/settings_css.tpl.php:109
|
1454 |
#: tpl/page_optm/settings_css.tpl.php:219
|
1455 |
msgid "Vary Group"
|
1456 |
msgstr ""
|
1457 |
|
1458 |
+
#: src/lang.cls.php:180
|
1459 |
msgid "Purge All Hooks"
|
1460 |
msgstr ""
|
1461 |
|
1462 |
+
#: src/lang.cls.php:181
|
1463 |
msgid "Improve HTTP/HTTPS Compatibility"
|
1464 |
msgstr ""
|
1465 |
|
1466 |
+
#: src/lang.cls.php:182
|
1467 |
msgid "Instant Click"
|
1468 |
msgstr ""
|
1469 |
|
1470 |
+
#: src/lang.cls.php:183
|
1471 |
msgid "Do Not Cache Cookies"
|
1472 |
msgstr ""
|
1473 |
|
1474 |
+
#: src/lang.cls.php:184
|
1475 |
msgid "Do Not Cache User Agents"
|
1476 |
msgstr ""
|
1477 |
|
1478 |
+
#: src/lang.cls.php:185
|
1479 |
msgid "Login Cookie"
|
1480 |
msgstr ""
|
1481 |
|
1482 |
+
#: src/lang.cls.php:186
|
1483 |
msgid "Image WebP Replacement"
|
1484 |
msgstr ""
|
1485 |
|
1486 |
+
#: src/lang.cls.php:188
|
1487 |
msgid "Frontend Heartbeat Control"
|
1488 |
msgstr ""
|
1489 |
|
1490 |
+
#: src/lang.cls.php:189
|
1491 |
msgid "Frontend Heartbeat TTL"
|
1492 |
msgstr ""
|
1493 |
|
1494 |
+
#: src/lang.cls.php:190
|
1495 |
msgid "Backend Heartbeat Control"
|
1496 |
msgstr ""
|
1497 |
|
1498 |
+
#: src/lang.cls.php:191
|
1499 |
msgid "Backend Heartbeat TTL"
|
1500 |
msgstr ""
|
1501 |
|
1502 |
+
#: src/lang.cls.php:192
|
1503 |
msgid "Editor Heartbeat"
|
1504 |
msgstr ""
|
1505 |
|
1506 |
+
#: src/lang.cls.php:193
|
1507 |
msgid "Editor Heartbeat TTL"
|
1508 |
msgstr ""
|
1509 |
|
1510 |
+
#: src/lang.cls.php:195
|
1511 |
msgid "QUIC.cloud CDN"
|
1512 |
msgstr ""
|
1513 |
|
1514 |
+
#: src/lang.cls.php:196
|
1515 |
msgid "Use CDN Mapping"
|
1516 |
msgstr ""
|
1517 |
|
1518 |
+
#: src/lang.cls.php:197
|
1519 |
msgid "CDN URL"
|
1520 |
msgstr ""
|
1521 |
|
1522 |
+
#: src/lang.cls.php:198
|
1523 |
msgid "Include Images"
|
1524 |
msgstr ""
|
1525 |
|
1526 |
+
#: src/lang.cls.php:199
|
1527 |
msgid "Include CSS"
|
1528 |
msgstr ""
|
1529 |
|
1530 |
+
#: src/lang.cls.php:200
|
1531 |
msgid "Include JS"
|
1532 |
msgstr ""
|
1533 |
|
1534 |
+
#: src/lang.cls.php:201 tpl/cdn/settings.tpl.php:102
|
1535 |
msgid "Include File Types"
|
1536 |
msgstr ""
|
1537 |
|
1538 |
+
#: src/lang.cls.php:202
|
1539 |
msgid "HTML Attribute To Replace"
|
1540 |
msgstr ""
|
1541 |
|
1542 |
+
#: src/lang.cls.php:203
|
1543 |
msgid "Original URLs"
|
1544 |
msgstr ""
|
1545 |
|
1546 |
+
#: src/lang.cls.php:204
|
1547 |
msgid "Included Directories"
|
1548 |
msgstr ""
|
1549 |
|
1550 |
+
#: src/lang.cls.php:205
|
1551 |
msgid "Exclude Path"
|
1552 |
msgstr ""
|
1553 |
|
1554 |
+
#: src/lang.cls.php:206
|
1555 |
msgid "Cloudflare API"
|
1556 |
msgstr ""
|
1557 |
|
1558 |
+
#: src/lang.cls.php:209
|
1559 |
msgid "Delay"
|
1560 |
msgstr ""
|
1561 |
|
1562 |
+
#: src/lang.cls.php:210
|
1563 |
msgid "Run Duration"
|
1564 |
msgstr ""
|
1565 |
|
1566 |
+
#: src/lang.cls.php:211
|
1567 |
msgid "Interval Between Runs"
|
1568 |
msgstr ""
|
1569 |
|
1570 |
+
#: src/lang.cls.php:212
|
1571 |
msgid "Crawl Interval"
|
1572 |
msgstr ""
|
1573 |
|
1574 |
+
#: src/lang.cls.php:213
|
1575 |
msgid "Threads"
|
1576 |
msgstr ""
|
1577 |
|
1578 |
+
#: src/lang.cls.php:214
|
1579 |
msgid "Timeout"
|
1580 |
msgstr ""
|
1581 |
|
1582 |
+
#: src/lang.cls.php:215
|
1583 |
msgid "Server Load Limit"
|
1584 |
msgstr ""
|
1585 |
|
1586 |
+
#: src/lang.cls.php:216
|
1587 |
msgid "Role Simulation"
|
1588 |
msgstr ""
|
1589 |
|
1590 |
+
#: src/lang.cls.php:217
|
1591 |
msgid "Cookie Simulation"
|
1592 |
msgstr ""
|
1593 |
|
1594 |
+
#: src/lang.cls.php:218
|
1595 |
msgid "Custom Sitemap"
|
1596 |
msgstr ""
|
1597 |
|
1598 |
+
#: src/lang.cls.php:219
|
1599 |
msgid "Drop Domain from Sitemap"
|
1600 |
msgstr ""
|
1601 |
|
1602 |
+
#: src/lang.cls.php:220
|
1603 |
msgid "Sitemap Timeout"
|
1604 |
msgstr ""
|
1605 |
|
1606 |
+
#: src/lang.cls.php:222 tpl/inc/disabled_all.php:5
|
1607 |
msgid "Disable All Features"
|
1608 |
msgstr ""
|
1609 |
|
1610 |
+
#: src/lang.cls.php:223 tpl/toolbox/log_viewer.tpl.php:7
|
1611 |
msgid "Debug Log"
|
1612 |
msgstr ""
|
1613 |
|
1614 |
+
#: src/lang.cls.php:224
|
1615 |
msgid "Admin IPs"
|
1616 |
msgstr ""
|
1617 |
|
1618 |
+
#: src/lang.cls.php:225
|
1619 |
msgid "Debug Level"
|
1620 |
msgstr ""
|
1621 |
|
1622 |
+
#: src/lang.cls.php:226
|
1623 |
msgid "Log File Size Limit"
|
1624 |
msgstr ""
|
1625 |
|
1626 |
+
#: src/lang.cls.php:227
|
1627 |
msgid "Log Cookies"
|
1628 |
msgstr ""
|
1629 |
|
1630 |
+
#: src/lang.cls.php:228
|
1631 |
msgid "Collapse Query Strings"
|
1632 |
msgstr ""
|
1633 |
|
1634 |
+
#: src/lang.cls.php:229
|
1635 |
msgid "Debug URI Includes"
|
1636 |
msgstr ""
|
1637 |
|
1638 |
+
#: src/lang.cls.php:230
|
1639 |
msgid "Debug URI Excludes"
|
1640 |
msgstr ""
|
1641 |
|
1642 |
+
#: src/lang.cls.php:232
|
1643 |
msgid "Revisions Max Number"
|
1644 |
msgstr ""
|
1645 |
|
1646 |
+
#: src/lang.cls.php:233
|
1647 |
msgid "Revisions Max Age"
|
1648 |
msgstr ""
|
1649 |
|
1956 |
msgid "Dismiss this notice"
|
1957 |
msgstr ""
|
1958 |
|
1959 |
+
#. #-#-#-#-# litespeed-cache.pot (LiteSpeed Cache 4.4.7) #-#-#-#-#
|
1960 |
#. Plugin Name of the plugin/theme
|
1961 |
#: tpl/banner/new_version.php:59 tpl/banner/new_version_dev.tpl.php:12
|
1962 |
#: tpl/cache/more_settings_tip.tpl.php:15 tpl/inc/admin_footer.php:8
|
1972 |
msgstr ""
|
1973 |
|
1974 |
#: tpl/banner/new_version.php:71 tpl/banner/new_version_dev.tpl.php:24
|
1975 |
+
#: tpl/toolbox/beta_test.tpl.php:60
|
1976 |
msgid "Upgrade"
|
1977 |
msgstr ""
|
1978 |
|
4449 |
|
4450 |
#: tpl/page_optm/settings_css.tpl.php:169
|
4451 |
#: tpl/page_optm/settings_html.tpl.php:129 tpl/page_optm/settings_js.tpl.php:67
|
|
|
4452 |
msgid ""
|
4453 |
"This can improve your speed score in services like Pingdom, GTmetrix and "
|
4454 |
"PageSpeed."
|
4784 |
msgid "Note: this option only works when %1$s is %2$s."
|
4785 |
msgstr ""
|
4786 |
|
|
|
|
|
|
|
|
|
4787 |
#: tpl/page_optm/settings_media_exc.tpl.php:21
|
4788 |
msgid "Listed images will not be lazy loaded."
|
4789 |
msgstr ""
|
4907 |
msgid "Selected roles will be excluded from all optimizations."
|
4908 |
msgstr ""
|
4909 |
|
4910 |
+
#: tpl/toolbox/beta_test.tpl.php:23
|
4911 |
msgid "Try GitHub Version"
|
4912 |
msgstr ""
|
4913 |
|
4914 |
+
#: tpl/toolbox/beta_test.tpl.php:27
|
4915 |
msgid ""
|
4916 |
"Use this section to switch plugin versions. To beta test a GitHub commit, "
|
4917 |
"enter the commit URL in the field below."
|
4918 |
msgstr ""
|
4919 |
|
4920 |
+
#: tpl/toolbox/beta_test.tpl.php:28
|
4921 |
msgid "Example"
|
4922 |
msgstr ""
|
4923 |
|
4924 |
+
#: tpl/toolbox/beta_test.tpl.php:32
|
4925 |
msgid "Use latest GitHub Dev commit"
|
4926 |
msgstr ""
|
4927 |
|
4928 |
+
#: tpl/toolbox/beta_test.tpl.php:34
|
4929 |
msgid "Use latest GitHub Master commit"
|
4930 |
msgstr ""
|
4931 |
|
4932 |
+
#: tpl/toolbox/beta_test.tpl.php:36 tpl/toolbox/beta_test.tpl.php:52
|
4933 |
msgid "Use latest WordPress release version"
|
4934 |
msgstr ""
|
4935 |
|
4936 |
+
#: tpl/toolbox/beta_test.tpl.php:36
|
4937 |
msgid "OR"
|
4938 |
msgstr ""
|
4939 |
|
4940 |
+
#: tpl/toolbox/beta_test.tpl.php:47
|
4941 |
msgid ""
|
4942 |
"Downgrade not recommended. May cause fatal error due to refactored code."
|
4943 |
msgstr ""
|
4944 |
|
4945 |
+
#: tpl/toolbox/beta_test.tpl.php:51
|
4946 |
msgid ""
|
4947 |
"Press the %s button to use the most recent GitHub commit. Master is for "
|
4948 |
"release candidate & Dev is for experimental testing."
|
4949 |
msgstr ""
|
4950 |
|
4951 |
+
#: tpl/toolbox/beta_test.tpl.php:51
|
4952 |
msgid "Use latest GitHub Dev/Master commit"
|
4953 |
msgstr ""
|
4954 |
|
4955 |
+
#: tpl/toolbox/beta_test.tpl.php:52
|
4956 |
msgid ""
|
4957 |
"Press the %s button to stop beta testing and go back to the current release "
|
4958 |
"from the WordPress Plugin Directory."
|
4959 |
msgstr ""
|
4960 |
|
4961 |
+
#: tpl/toolbox/beta_test.tpl.php:57
|
4962 |
msgid ""
|
4963 |
"In order to avoid an upgrade error, you must be using %1$s or later before "
|
4964 |
"you can upgrade to %2$s versions."
|
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: 4.4.
|
7 |
* Author: LiteSpeed Technologies
|
8 |
* Author URI: https://www.litespeedtech.com
|
9 |
* License: GPLv3
|
@@ -33,7 +33,7 @@ if ( defined( 'LSCWP_V' ) ) {
|
|
33 |
return;
|
34 |
}
|
35 |
|
36 |
-
! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '4.4.
|
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: 4.4.7
|
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', '4.4.7' );
|
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
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: LiteSpeedTech
|
3 |
Tags: caching, optimize, performance, pagespeed, core web vitals, seo, speed, image optimize, compress, object cache, redis, memcached, database cleaner
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 5.8.
|
6 |
-
Stable tag: 4.4.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
|
@@ -249,13 +249,20 @@ The vast majority of plugins and themes are compatible with LiteSpeed Cache. The
|
|
249 |
|
250 |
== Changelog ==
|
251 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
= 4.4.6 - Dec 27 2022 =
|
253 |
-
* **Guest** Restored `document.referrer` for organic traffic
|
254 |
* **Image Optimize** Fixed a potential PHP notice when uploading images in WP w/ PHP7.4+. (titsmaker)
|
255 |
-
* **ESI** Fixed
|
256 |
-
* **3rd** Reverted ESI
|
257 |
-
* **3rd** Fixed
|
258 |
-
* **Misc** Check
|
259 |
|
260 |
= 4.4.5 - Dec 1 2021 =
|
261 |
* **Data** Fixed potential PHP notice when generating CSS/JS optimized files w/ PHP v7.4+. (Sarah Richardson/silencedgd/slr1979)
|
2 |
Contributors: LiteSpeedTech
|
3 |
Tags: caching, optimize, performance, pagespeed, core web vitals, seo, speed, image optimize, compress, object cache, redis, memcached, database cleaner
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 5.8.3
|
6 |
+
Stable tag: 4.4.7
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
|
249 |
|
250 |
== Changelog ==
|
251 |
|
252 |
+
= 4.4.7 - Jan 11 2022 =
|
253 |
+
* **Page Optimize** Dropped `Inline Lazy Load Images Library` option. Now will always inline lazyload library. (Ankit)
|
254 |
+
* **3rd** Prevented JavaScript files from being appended to Rank Math SEO sitemap.
|
255 |
+
* **Purge** Dropped default stale purge when purging a post.
|
256 |
+
* **Cloud** Dropped unused API calls.
|
257 |
+
* **Cloud** Dropped redundant IP validation in API calls.
|
258 |
+
|
259 |
= 4.4.6 - Dec 27 2022 =
|
260 |
+
* **Guest** Restored `document.referrer` for organic traffic purposes when Guest Mode is enabled. (michelefns)
|
261 |
* **Image Optimize** Fixed a potential PHP notice when uploading images in WP w/ PHP7.4+. (titsmaker)
|
262 |
+
* **ESI** Fixed an issue where ESI settings were not updated on customized widgets(#422 Abe)
|
263 |
+
* **3rd** Reverted ESI Adminbar change on Elementor front pages for backward compatibility (#423 Abe)
|
264 |
+
* **3rd** Fixed an issue where disabling ESI potential caused a PHP warning when using `Perfmatters`. (Jeffrey Zhang)
|
265 |
+
* **Misc** Check whether HTTP_REFERER is set or not before using it in Router class. (#425 Abe)
|
266 |
|
267 |
= 4.4.5 - Dec 1 2021 =
|
268 |
* **Data** Fixed potential PHP notice when generating CSS/JS optimized files w/ PHP v7.4+. (Sarah Richardson/silencedgd/slr1979)
|
src/base.cls.php
CHANGED
@@ -193,7 +193,6 @@ class Base extends Root {
|
|
193 |
const O_MEDIA_PLACEHOLDER_RESP_ASYNC = 'media-placeholder_resp_async';
|
194 |
const O_MEDIA_IFRAME_LAZY = 'media-iframe_lazy';
|
195 |
const O_MEDIA_ADD_MISSING_SIZES = 'media-add_missing_sizes';
|
196 |
-
const O_MEDIA_LAZYJS_INLINE = 'media-lazyjs_inline';
|
197 |
const O_MEDIA_LAZY_EXC = 'media-lazy_exc';
|
198 |
const O_MEDIA_LAZY_CLS_EXC = 'media-lazy_cls_exc';
|
199 |
const O_MEDIA_LAZY_PARENT_CLS_EXC = 'media-lazy_parent_cls_exc';
|
@@ -467,7 +466,6 @@ class Base extends Root {
|
|
467 |
self::O_MEDIA_PLACEHOLDER_RESP_ASYNC => false,
|
468 |
self::O_MEDIA_IFRAME_LAZY => false,
|
469 |
self::O_MEDIA_ADD_MISSING_SIZES => false,
|
470 |
-
self::O_MEDIA_LAZYJS_INLINE => false,
|
471 |
self::O_MEDIA_LAZY_EXC => array(),
|
472 |
self::O_MEDIA_LAZY_CLS_EXC => array(),
|
473 |
self::O_MEDIA_LAZY_PARENT_CLS_EXC => array(),
|
193 |
const O_MEDIA_PLACEHOLDER_RESP_ASYNC = 'media-placeholder_resp_async';
|
194 |
const O_MEDIA_IFRAME_LAZY = 'media-iframe_lazy';
|
195 |
const O_MEDIA_ADD_MISSING_SIZES = 'media-add_missing_sizes';
|
|
|
196 |
const O_MEDIA_LAZY_EXC = 'media-lazy_exc';
|
197 |
const O_MEDIA_LAZY_CLS_EXC = 'media-lazy_cls_exc';
|
198 |
const O_MEDIA_LAZY_PARENT_CLS_EXC = 'media-lazy_parent_cls_exc';
|
466 |
self::O_MEDIA_PLACEHOLDER_RESP_ASYNC => false,
|
467 |
self::O_MEDIA_IFRAME_LAZY => false,
|
468 |
self::O_MEDIA_ADD_MISSING_SIZES => false,
|
|
|
469 |
self::O_MEDIA_LAZY_EXC => array(),
|
470 |
self::O_MEDIA_LAZY_CLS_EXC => array(),
|
471 |
self::O_MEDIA_LAZY_PARENT_CLS_EXC => array(),
|
src/css.cls.php
CHANGED
@@ -516,62 +516,6 @@ class CSS extends Base {
|
|
516 |
Purge::add( strtoupper( $type ) . '.' . md5( $queue_k ) );
|
517 |
}
|
518 |
|
519 |
-
/**
|
520 |
-
* Notify CCSS/UCSS
|
521 |
-
*
|
522 |
-
* @since 4.2
|
523 |
-
*/
|
524 |
-
public function notify( $type ) {
|
525 |
-
$post_data = json_decode( file_get_contents( 'php://input' ), true );
|
526 |
-
if( is_null( $post_data ) ) {
|
527 |
-
$post_data = $_POST;
|
528 |
-
}
|
529 |
-
|
530 |
-
if ( empty( $post_data[ 'data' ] ) ) {
|
531 |
-
Debug2::debug( '[CSS] ❌ empty data ' . $type );
|
532 |
-
return;
|
533 |
-
}
|
534 |
-
|
535 |
-
if ( empty( $post_data[ 'status' ] ) ) {
|
536 |
-
Debug2::debug( '[CSS] ❌ empty status' );
|
537 |
-
return;
|
538 |
-
}
|
539 |
-
|
540 |
-
Debug2::debug( '[CSS] Received notification [Type] ' . $type . ' [Count] ' . count( $post_data[ 'data' ] ) );
|
541 |
-
|
542 |
-
$this->_queue = $this->load_queue( $type );
|
543 |
-
|
544 |
-
// Clear existing queues
|
545 |
-
$valid_count = 0;
|
546 |
-
if ( $post_data[ 'status' ] == 'clear' ) {
|
547 |
-
foreach ( $post_data[ 'data' ] as $queue_k ) {
|
548 |
-
if ( ! empty( $this->_queue[ $queue_k ] ) ) {
|
549 |
-
unset( $this->_queue[ $queue_k ] );
|
550 |
-
}
|
551 |
-
}
|
552 |
-
}
|
553 |
-
// Append done list
|
554 |
-
elseif ( $post_data[ 'status' ] == 'done' ) {
|
555 |
-
foreach ( $post_data[ 'data' ] as $queue_k => $css ) {
|
556 |
-
if ( empty( $this->_queue[ $queue_k ] ) ) {
|
557 |
-
continue;
|
558 |
-
}
|
559 |
-
|
560 |
-
$this->_save_con( $type, $css, $queue_k );
|
561 |
-
|
562 |
-
unset( $this->_queue[ $queue_k ] );
|
563 |
-
|
564 |
-
$valid_count++;
|
565 |
-
}
|
566 |
-
}
|
567 |
-
|
568 |
-
$this->save_queue( $type, $this->_queue );
|
569 |
-
|
570 |
-
Debug2::debug( '[CSS] Saved result [valid count] ' . $valid_count );
|
571 |
-
|
572 |
-
return array( 'count' => $valid_count );
|
573 |
-
}
|
574 |
-
|
575 |
/**
|
576 |
* Print a loading message when redirecting CCSS/UCSS page to aviod whiteboard confusion
|
577 |
*/
|
516 |
Purge::add( strtoupper( $type ) . '.' . md5( $queue_k ) );
|
517 |
}
|
518 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
519 |
/**
|
520 |
* Print a loading message when redirecting CCSS/UCSS page to aviod whiteboard confusion
|
521 |
*/
|
src/data.upgrade.func.php
CHANGED
@@ -376,7 +376,7 @@ function litespeed_update_3_0( $ver ) {
|
|
376 |
'media_placeholder_resp_color' => 'media-placeholder_resp_color',
|
377 |
'media_placeholder_resp_async' => 'media-placeholder_resp_async',
|
378 |
'media_iframe_lazy' => 'media-iframe_lazy',
|
379 |
-
'media_img_lazyjs_inline' => 'media-lazyjs_inline',
|
380 |
|
381 |
'media_optm_auto' => 'img_optm-auto',
|
382 |
'media_optm_cron' => 'img_optm-cron',
|
376 |
'media_placeholder_resp_color' => 'media-placeholder_resp_color',
|
377 |
'media_placeholder_resp_async' => 'media-placeholder_resp_async',
|
378 |
'media_iframe_lazy' => 'media-iframe_lazy',
|
379 |
+
// 'media_img_lazyjs_inline' => 'media-lazyjs_inline',
|
380 |
|
381 |
'media_optm_auto' => 'img_optm-auto',
|
382 |
'media_optm_cron' => 'img_optm-cron',
|
src/gui.cls.php
CHANGED
@@ -777,11 +777,11 @@ class GUI extends Base {
|
|
777 |
$buffer = $this->_clean_wrapper( $buffer );
|
778 |
|
779 |
// Maybe restore doc.ref
|
780 |
-
if ( $this->conf( Base::O_GUEST ) && strpos( $buffer, '<head>' ) !== false ) {
|
781 |
$buffer = $this->_enqueue_guest_docref_js( $buffer );
|
782 |
}
|
783 |
|
784 |
-
if ( defined( 'LITESPEED_GUEST' ) && LITESPEED_GUEST && strpos( $buffer, '</body>' ) !== false ) {
|
785 |
$buffer = $this->_enqueue_guest_js( $buffer );
|
786 |
}
|
787 |
|
777 |
$buffer = $this->_clean_wrapper( $buffer );
|
778 |
|
779 |
// Maybe restore doc.ref
|
780 |
+
if ( $this->conf( Base::O_GUEST ) && strpos( $buffer, '<head>' ) !== false && defined( 'LITESPEED_IS_HTML' ) ) {
|
781 |
$buffer = $this->_enqueue_guest_docref_js( $buffer );
|
782 |
}
|
783 |
|
784 |
+
if ( defined( 'LITESPEED_GUEST' ) && LITESPEED_GUEST && strpos( $buffer, '</body>' ) !== false && defined( 'LITESPEED_IS_HTML' ) ) {
|
785 |
$buffer = $this->_enqueue_guest_js( $buffer );
|
786 |
}
|
787 |
|
src/lang.cls.php
CHANGED
@@ -162,7 +162,6 @@ class Lang extends Base {
|
|
162 |
self::O_MEDIA_PLACEHOLDER_RESP_ASYNC => __( 'Generate LQIP In Background', 'litespeed-cache' ),
|
163 |
self::O_MEDIA_IFRAME_LAZY => __( 'Lazy Load Iframes', 'litespeed-cache' ),
|
164 |
self::O_MEDIA_ADD_MISSING_SIZES => __( 'Add Missing Sizes', 'litespeed-cache' ),
|
165 |
-
self::O_MEDIA_LAZYJS_INLINE => __( 'Inline Lazy Load Images Library', 'litespeed-cache' ),
|
166 |
self::O_IMG_OPTM_AUTO => __( 'Auto Request Cron', 'litespeed-cache' ),
|
167 |
self::O_IMG_OPTM_CRON => __( 'Auto Pull Cron', 'litespeed-cache' ),
|
168 |
self::O_IMG_OPTM_ORI => __( 'Optimize Original Images', 'litespeed-cache' ),
|
162 |
self::O_MEDIA_PLACEHOLDER_RESP_ASYNC => __( 'Generate LQIP In Background', 'litespeed-cache' ),
|
163 |
self::O_MEDIA_IFRAME_LAZY => __( 'Lazy Load Iframes', 'litespeed-cache' ),
|
164 |
self::O_MEDIA_ADD_MISSING_SIZES => __( 'Add Missing Sizes', 'litespeed-cache' ),
|
|
|
165 |
self::O_IMG_OPTM_AUTO => __( 'Auto Request Cron', 'litespeed-cache' ),
|
166 |
self::O_IMG_OPTM_CRON => __( 'Auto Pull Cron', 'litespeed-cache' ),
|
167 |
self::O_IMG_OPTM_ORI => __( 'Optimize Original Images', 'litespeed-cache' ),
|
src/media.cls.php
CHANGED
@@ -507,13 +507,7 @@ class Media extends Root {
|
|
507 |
|
508 |
// Include lazyload lib js and init lazyload
|
509 |
if ( $cfg_lazy || $cfg_iframe_lazy ) {
|
510 |
-
|
511 |
-
$lazy_lib = '<script data-no-optimize="1">' . File::read( LSCWP_DIR . self::LIB_FILE_IMG_LAZYLOAD ) . '</script>';
|
512 |
-
} else {
|
513 |
-
$lazy_lib_url = LSWCP_PLUGIN_URL . self::LIB_FILE_IMG_LAZYLOAD;
|
514 |
-
$lazy_lib = '<script src="' . $lazy_lib_url . '"></script>';
|
515 |
-
}
|
516 |
-
|
517 |
$this->content = str_replace( '</body>', $lazy_lib . '</body>', $this->content );
|
518 |
}
|
519 |
}
|
507 |
|
508 |
// Include lazyload lib js and init lazyload
|
509 |
if ( $cfg_lazy || $cfg_iframe_lazy ) {
|
510 |
+
$lazy_lib = '<script data-no-optimize="1" defer>' . File::read( LSCWP_DIR . self::LIB_FILE_IMG_LAZYLOAD ) . '</script>';
|
|
|
|
|
|
|
|
|
|
|
|
|
511 |
$this->content = str_replace( '</body>', $lazy_lib . '</body>', $this->content );
|
512 |
}
|
513 |
}
|
src/purge.cls.php
CHANGED
@@ -772,7 +772,7 @@ class Purge extends Base {
|
|
772 |
self::add( Tag::TYPE_REST );
|
773 |
}
|
774 |
|
775 |
-
$this->cls( 'Control' )->set_stale();
|
776 |
}
|
777 |
|
778 |
/**
|
772 |
self::add( Tag::TYPE_REST );
|
773 |
}
|
774 |
|
775 |
+
// $this->cls( 'Control' )->set_stale();
|
776 |
}
|
777 |
|
778 |
/**
|
src/rest.cls.php
CHANGED
@@ -77,30 +77,6 @@ class REST extends Root {
|
|
77 |
'permission_callback' => array( $this, 'is_from_cloud' ),
|
78 |
) );
|
79 |
|
80 |
-
register_rest_route( 'litespeed/v1', '/notify_ccss', array(
|
81 |
-
'methods' => 'POST',
|
82 |
-
'callback' => array( $this, 'notify_ccss' ),
|
83 |
-
'permission_callback' => array( $this, 'is_from_cloud' ),
|
84 |
-
) );
|
85 |
-
|
86 |
-
register_rest_route( 'litespeed/v1', '/notify_ucss', array(
|
87 |
-
'methods' => 'POST',
|
88 |
-
'callback' => array( $this, 'notify_ucss' ),
|
89 |
-
'permission_callback' => array( $this, 'is_from_cloud' ),
|
90 |
-
) );
|
91 |
-
|
92 |
-
register_rest_route( 'litespeed/v1', '/notify_lqip', array(
|
93 |
-
'methods' => 'POST',
|
94 |
-
'callback' => array( $this, 'notify_lqip' ),
|
95 |
-
'permission_callback' => array( $this, 'is_from_cloud' ),
|
96 |
-
) );
|
97 |
-
|
98 |
-
register_rest_route( 'litespeed/v1', '/notify_vpi', array(
|
99 |
-
'methods' => 'POST',
|
100 |
-
'callback' => array( $this, 'notify_vpi' ),
|
101 |
-
'permission_callback' => array( $this, 'is_from_cloud' ),
|
102 |
-
) );
|
103 |
-
|
104 |
// Image optm notify_img
|
105 |
// Need validation
|
106 |
register_rest_route( 'litespeed/v1', '/notify_img', array(
|
@@ -134,9 +110,11 @@ class REST extends Root {
|
|
134 |
* Check if the request is from cloud nodes
|
135 |
*
|
136 |
* @since 4.2
|
|
|
137 |
*/
|
138 |
public function is_from_cloud() {
|
139 |
-
return
|
|
|
140 |
}
|
141 |
|
142 |
/**
|
@@ -193,42 +171,6 @@ class REST extends Root {
|
|
193 |
return $this->cls( 'Cloud' )->save_apikey();
|
194 |
}
|
195 |
|
196 |
-
/**
|
197 |
-
* Notify CCSS
|
198 |
-
*
|
199 |
-
* @since 4.2
|
200 |
-
*/
|
201 |
-
public function notify_ccss() {
|
202 |
-
return $this->cls( 'css' )->notify( 'ccss' );
|
203 |
-
}
|
204 |
-
|
205 |
-
/**
|
206 |
-
* Notify UCSS
|
207 |
-
*
|
208 |
-
* @since 4.2
|
209 |
-
*/
|
210 |
-
public function notify_ucss() {
|
211 |
-
return $this->cls( 'css' )->notify( 'ucss' );
|
212 |
-
}
|
213 |
-
|
214 |
-
/**
|
215 |
-
* Notify lqip
|
216 |
-
*
|
217 |
-
* @since 4.2
|
218 |
-
*/
|
219 |
-
public function notify_lqip() {
|
220 |
-
return $this->cls( 'placeholder' )->notify();
|
221 |
-
}
|
222 |
-
|
223 |
-
/**
|
224 |
-
* Notify viewport images
|
225 |
-
*
|
226 |
-
* @since 4.2
|
227 |
-
*/
|
228 |
-
public function notify_vpi() {
|
229 |
-
return $this->cls( 'media' )->notify();
|
230 |
-
}
|
231 |
-
|
232 |
/**
|
233 |
* Launch api call
|
234 |
*
|
77 |
'permission_callback' => array( $this, 'is_from_cloud' ),
|
78 |
) );
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
// Image optm notify_img
|
81 |
// Need validation
|
82 |
register_rest_route( 'litespeed/v1', '/notify_img', array(
|
110 |
* Check if the request is from cloud nodes
|
111 |
*
|
112 |
* @since 4.2
|
113 |
+
* @since 4.4.7 As there is always token/api key validation, ip validation is redundant
|
114 |
*/
|
115 |
public function is_from_cloud() {
|
116 |
+
return true;
|
117 |
+
// return $this->cls( 'Cloud' )->is_from_cloud();
|
118 |
}
|
119 |
|
120 |
/**
|
171 |
return $this->cls( 'Cloud' )->save_apikey();
|
172 |
}
|
173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
/**
|
175 |
* Launch api call
|
176 |
*
|
tpl/page_optm/settings_media.tpl.php
CHANGED
@@ -231,19 +231,4 @@ $lqip_queue = $this->load_queue( 'lqip' );
|
|
231 |
</td>
|
232 |
</tr>
|
233 |
|
234 |
-
<tr>
|
235 |
-
<th>
|
236 |
-
<?php $id = Base::O_MEDIA_LAZYJS_INLINE; ?>
|
237 |
-
<?php $this->title( $id ); ?>
|
238 |
-
</th>
|
239 |
-
<td>
|
240 |
-
<?php $this->build_switch( $id ); ?>
|
241 |
-
<div class="litespeed-desc">
|
242 |
-
<?php echo __( 'Include the lazy load image JavaScript library inline.', 'litespeed-cache' ); ?>
|
243 |
-
<?php echo __( 'This can improve your speed score in services like Pingdom, GTmetrix and PageSpeed.', 'litespeed-cache' ); ?>
|
244 |
-
<?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/pageopt/#inline-lazy-load-images-library' ); ?>
|
245 |
-
</div>
|
246 |
-
</td>
|
247 |
-
</tr>
|
248 |
-
|
249 |
</tbody></table>
|
231 |
</td>
|
232 |
</tr>
|
233 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
</tbody></table>
|
tpl/toolbox/beta_test.tpl.php
CHANGED
@@ -4,7 +4,7 @@ defined( 'WPINC' ) || exit;
|
|
4 |
|
5 |
// Existing public version list
|
6 |
$v_list = array(
|
7 |
-
'4.4.
|
8 |
'4.4.5',
|
9 |
'4.4.4',
|
10 |
'4.4.3',
|
4 |
|
5 |
// Existing public version list
|
6 |
$v_list = array(
|
7 |
+
'4.4.7',
|
8 |
'4.4.5',
|
9 |
'4.4.4',
|
10 |
'4.4.3',
|