Version Description
- May 24 2018 =
- [NEW FEATURE] Original image backups can be removed now. (@borisov87 @JMCA2)
- [BUGFIX] Role Excludes in Tuning tab can save now. (@pako69)
- [UPDATE] Added privacy policy support.
Download this release
Release Info
Developer | LiteSpeedTech |
Plugin | LiteSpeed Cache |
Version | 2.2.6 |
Comparing to | |
See all releases |
Code changes from version 2.2.5 to 2.2.6
- admin/litespeed-cache-admin-settings.class.php +1 -1
- admin/litespeed-cache-admin.class.php +6 -0
- admin/tpl/image_optimization.php +60 -2
- doc/privacy_policy.html +1 -0
- inc/img_optm.class.php +114 -0
- inc/litespeed-cache.class.php +1 -1
- inc/utility.class.php +4 -0
- includes/litespeed-cache-utility.class.php +4 -0
- includes/litespeed-cache.class.php +1 -1
- languages/litespeed-cache.pot +150 -84
- litespeed-cache.php +1 -1
- readme.txt +16 -1
admin/litespeed-cache-admin-settings.class.php
CHANGED
@@ -760,7 +760,7 @@ class LiteSpeed_Cache_Admin_Settings
|
|
760 |
|
761 |
// Update Role Excludes
|
762 |
$id = LiteSpeed_Cache_Config::EXCLUDE_OPTIMIZATION_ROLES ;
|
763 |
-
$this->
|
764 |
|
765 |
/**
|
766 |
* DNS prefetch
|
760 |
|
761 |
// Update Role Excludes
|
762 |
$id = LiteSpeed_Cache_Config::EXCLUDE_OPTIMIZATION_ROLES ;
|
763 |
+
update_option( $id, ! empty( $this->_input[ $id ] ) ? $this->_input[ $id ] : array() ) ;
|
764 |
|
765 |
/**
|
766 |
* DNS prefetch
|
admin/litespeed-cache-admin.class.php
CHANGED
@@ -96,6 +96,12 @@ class LiteSpeed_Cache_Admin
|
|
96 |
register_setting(LiteSpeed_Cache_Config::OPTION_NAME, LiteSpeed_Cache_Config::OPTION_NAME, array(LiteSpeed_Cache_Admin_Settings::get_instance(), 'validate_plugin_settings')) ;
|
97 |
}
|
98 |
|
|
|
|
|
|
|
|
|
|
|
|
|
99 |
do_action( 'litspeed_after_admin_init' ) ;
|
100 |
|
101 |
// If setting is set to on, try to activate cache func
|
96 |
register_setting(LiteSpeed_Cache_Config::OPTION_NAME, LiteSpeed_Cache_Config::OPTION_NAME, array(LiteSpeed_Cache_Admin_Settings::get_instance(), 'validate_plugin_settings')) ;
|
97 |
}
|
98 |
|
99 |
+
// Add privacy policy
|
100 |
+
// @since 2.2.6
|
101 |
+
if ( function_exists( 'wp_add_privacy_policy_content' ) ) {
|
102 |
+
wp_add_privacy_policy_content( LiteSpeed_Cache::PLUGIN_NAME, Litespeed_File::read( LSCWP_DIR . 'doc/privacy_policy.html' ) ) ;
|
103 |
+
}
|
104 |
+
|
105 |
do_action( 'litspeed_after_admin_init' ) ;
|
106 |
|
107 |
// If setting is set to on, try to activate cache func
|
admin/tpl/image_optimization.php
CHANGED
@@ -8,6 +8,7 @@ $img_optm = LiteSpeed_Cache_Img_Optm::get_instance() ;
|
|
8 |
|
9 |
$img_count = $img_optm->img_count() ;
|
10 |
$optm_summary = $img_optm->summary_info() ;
|
|
|
11 |
|
12 |
list( $last_run, $is_running ) = $img_optm->cron_running( false ) ;
|
13 |
|
@@ -256,10 +257,10 @@ LiteSpeed_Cache_GUI::show_promo() ;
|
|
256 |
<?php echo sprintf( __( 'Results can be checked in <a %s>Media Library</a>.', 'litespeed-cache' ), 'href="upload.php?mode=list"' ) ; ?>
|
257 |
</p>
|
258 |
|
259 |
-
<a href="<?php echo LiteSpeed_Cache_Utility::build_url( LiteSpeed_Cache::ACTION_IMG_OPTM, LiteSpeed_Cache_Img_Optm::TYPE_IMG_OPTIMIZE_RESCAN ) ; ?>" class="litespeed-btn-success">
|
260 |
<?php echo __( 'Send New Thumbnail Requests', 'litespeed-cache' ) ; ?>
|
261 |
</a>
|
262 |
-
<span class="litespeed-desc">
|
263 |
<?php echo __( 'Scan for any new unoptimized image thumbnail sizes and resend necessary image optimization requests.', 'litespeed-cache' ) ; ?>
|
264 |
</span>
|
265 |
|
@@ -291,6 +292,63 @@ LiteSpeed_Cache_GUI::show_promo() ;
|
|
291 |
</font>
|
292 |
</span>
|
293 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
<?php endif ; ?>
|
295 |
|
296 |
|
8 |
|
9 |
$img_count = $img_optm->img_count() ;
|
10 |
$optm_summary = $img_optm->summary_info() ;
|
11 |
+
list( $storage_data, $rm_log ) = $img_optm->storage_data() ;
|
12 |
|
13 |
list( $last_run, $is_running ) = $img_optm->cron_running( false ) ;
|
14 |
|
257 |
<?php echo sprintf( __( 'Results can be checked in <a %s>Media Library</a>.', 'litespeed-cache' ), 'href="upload.php?mode=list"' ) ; ?>
|
258 |
</p>
|
259 |
|
260 |
+
<a href="<?php echo LiteSpeed_Cache_Utility::build_url( LiteSpeed_Cache::ACTION_IMG_OPTM, LiteSpeed_Cache_Img_Optm::TYPE_IMG_OPTIMIZE_RESCAN ) ; ?>" class="litespeed-btn-success litespeed-hide">
|
261 |
<?php echo __( 'Send New Thumbnail Requests', 'litespeed-cache' ) ; ?>
|
262 |
</a>
|
263 |
+
<span class="litespeed-desc litespeed-hide">
|
264 |
<?php echo __( 'Scan for any new unoptimized image thumbnail sizes and resend necessary image optimization requests.', 'litespeed-cache' ) ; ?>
|
265 |
</span>
|
266 |
|
292 |
</font>
|
293 |
</span>
|
294 |
|
295 |
+
<hr />
|
296 |
+
|
297 |
+
<h3 class="litespeed-title"><?php echo __('Storage Optimization', 'litespeed-cache') ; ?></h3>
|
298 |
+
|
299 |
+
<a href="<?php echo LiteSpeed_Cache_Utility::build_url( LiteSpeed_Cache::ACTION_IMG_OPTM, LiteSpeed_Cache_Img_Optm::TYPE_CALC_BKUP ) ; ?>" class="litespeed-btn-success">
|
300 |
+
<?php echo __( 'Calculate Original Image Storage', 'litespeed-cache' ) ; ?>
|
301 |
+
</a>
|
302 |
+
<span class="litespeed-desc">
|
303 |
+
<?php echo __( 'A backup of each image is saved before it is optimized. This button will calculate the total amount of disk space used by these backups.', 'litespeed-cache' ) ; ?>
|
304 |
+
</span>
|
305 |
+
<?php if ( $storage_data ) : ?>
|
306 |
+
<div class="litespeed-desc litespeed-left20">
|
307 |
+
<p>
|
308 |
+
<?php echo __( 'Last calculated', 'litespeed-cache' ) . ': <code>' . LiteSpeed_Cache_Utility::readable_time( $storage_data[ 'date' ] ) . '</code>' ; ?>
|
309 |
+
</p>
|
310 |
+
<?php if ( $storage_data[ 'count' ] ) : ?>
|
311 |
+
<p>
|
312 |
+
<?php echo __( 'Files', 'litespeed-cache' ) . ': <code>' . $storage_data[ 'count' ] . '</code>' ; ?>
|
313 |
+
</p>
|
314 |
+
<p>
|
315 |
+
<?php echo __( 'Total', 'litespeed-cache' ) . ': <code>' . LiteSpeed_Cache_Utility::real_size( $storage_data[ 'sum' ] ) . '</code>' ; ?>
|
316 |
+
</p>
|
317 |
+
<?php else : ?>
|
318 |
+
<p>
|
319 |
+
<?php echo LiteSpeed_Cache_GUI::pie( 100, 30, true ) ; ?>
|
320 |
+
</p>
|
321 |
+
<?php endif ; ?>
|
322 |
+
</div>
|
323 |
+
<?php endif ; ?>
|
324 |
+
|
325 |
+
<br />
|
326 |
+
<a href="<?php echo LiteSpeed_Cache_Utility::build_url( LiteSpeed_Cache::ACTION_IMG_OPTM, LiteSpeed_Cache_Img_Optm::TYPE_RM_BKUP ) ; ?>" data-litespeed-cfm="<?php echo __( 'Are you sure to remove all image bakcups?', 'litespeed-cache' ) ; ?>" class="litespeed-btn-danger">
|
327 |
+
<?php echo __( 'Remove Original Image Backups', 'litespeed-cache' ) ; ?>
|
328 |
+
</a>
|
329 |
+
<span class="litespeed-desc">
|
330 |
+
<?php echo __( 'This will delete all of the backups of the original images.', 'litespeed-cache' ) ; ?>
|
331 |
+
<font class="litespeed-danger">
|
332 |
+
<?php echo __('WARNING', 'litespeed-cache'); ?>:
|
333 |
+
<?php echo __( 'This is irreversible.', 'litespeed-cache' ) ; ?>
|
334 |
+
<?php echo __( 'You will be unable to Revert Optimization once the backups are deleted!', 'litespeed-cache' ) ; ?>
|
335 |
+
</font>
|
336 |
+
</span>
|
337 |
+
<?php if ( $rm_log ) : ?>
|
338 |
+
<div class="litespeed-desc litespeed-left20">
|
339 |
+
<p>
|
340 |
+
<?php echo __( 'Last ran', 'litespeed-cache' ) . ': <code>' . LiteSpeed_Cache_Utility::readable_time( $rm_log[ 'date' ] ) . '</code>' ; ?>
|
341 |
+
</p>
|
342 |
+
<p>
|
343 |
+
<?php echo __( 'Files', 'litespeed-cache' ) . ': <code>' . $rm_log[ 'count' ] . '</code>' ; ?>
|
344 |
+
</p>
|
345 |
+
<p>
|
346 |
+
<?php echo __( 'Saved', 'litespeed-cache' ) . ': <code>' . LiteSpeed_Cache_Utility::real_size( $rm_log[ 'sum' ] ) . '</code>' ; ?>
|
347 |
+
</p>
|
348 |
+
</div>
|
349 |
+
<?php endif ; ?>
|
350 |
+
|
351 |
+
|
352 |
<?php endif ; ?>
|
353 |
|
354 |
|
doc/privacy_policy.html
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
This site utilizes caching in order to facilitate a faster response time and better user experience. Caching potentially stores a duplicate copy of every web page that is on display on this site. All cache files are temporary, and are never accessed by any third party, except as necessary to obtain technical support from the cache plugin vendor. Cache files expire on a schedule set by the site administrator, but may easily be purged by the admin before their natural expiration, if necessary.
|
inc/img_optm.class.php
CHANGED
@@ -21,6 +21,8 @@ class LiteSpeed_Cache_Img_Optm
|
|
21 |
const TYPE_IMG_PULL = 'img_pull' ;
|
22 |
const TYPE_IMG_BATCH_SWITCH_ORI = 'img_optm_batch_switch_ori' ;
|
23 |
const TYPE_IMG_BATCH_SWITCH_OPTM = 'img_optm_batch_switch_optm' ;
|
|
|
|
|
24 |
|
25 |
const ITEM_IMG_OPTM_CRON_RUN = 'litespeed-img_optm_cron_run' ; // last cron running time
|
26 |
|
@@ -39,6 +41,8 @@ class LiteSpeed_Cache_Img_Optm
|
|
39 |
const DB_IMG_OPTIMIZE_SIZE = 'litespeed-optimize-size' ;
|
40 |
|
41 |
const DB_IMG_OPTM_SUMMARY = 'litespeed_img_optm_summary' ;
|
|
|
|
|
42 |
|
43 |
private $wp_upload_dir ;
|
44 |
private $tmp_pid ;
|
@@ -1359,6 +1363,94 @@ class LiteSpeed_Cache_Img_Optm
|
|
1359 |
update_option( self::DB_IMG_OPTM_SUMMARY, $summary ) ;
|
1360 |
}
|
1361 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1362 |
/**
|
1363 |
* Get optm summary
|
1364 |
*
|
@@ -1375,6 +1467,20 @@ class LiteSpeed_Cache_Img_Optm
|
|
1375 |
return ! empty( $optm_summary[ $field ] ) ? $optm_summary[ $field ] : 0 ;
|
1376 |
}
|
1377 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1378 |
/**
|
1379 |
* Count images
|
1380 |
*
|
@@ -1614,6 +1720,14 @@ class LiteSpeed_Cache_Img_Optm
|
|
1614 |
$type = LiteSpeed_Cache_Router::verify_type() ;
|
1615 |
|
1616 |
switch ( $type ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1617 |
case self::TYPE_SYNC_DATA :
|
1618 |
$instance->_sync_data() ;
|
1619 |
break ;
|
21 |
const TYPE_IMG_PULL = 'img_pull' ;
|
22 |
const TYPE_IMG_BATCH_SWITCH_ORI = 'img_optm_batch_switch_ori' ;
|
23 |
const TYPE_IMG_BATCH_SWITCH_OPTM = 'img_optm_batch_switch_optm' ;
|
24 |
+
const TYPE_CALC_BKUP = 'calc_bkup' ;
|
25 |
+
const TYPE_RM_BKUP = 'rm_bkup' ;
|
26 |
|
27 |
const ITEM_IMG_OPTM_CRON_RUN = 'litespeed-img_optm_cron_run' ; // last cron running time
|
28 |
|
41 |
const DB_IMG_OPTIMIZE_SIZE = 'litespeed-optimize-size' ;
|
42 |
|
43 |
const DB_IMG_OPTM_SUMMARY = 'litespeed_img_optm_summary' ;
|
44 |
+
const DB_IMG_OPTM_BK_SUMMARY = 'litespeed_img_optm_bk_summary' ;
|
45 |
+
const DB_IMG_OPTM_RMBK_SUMMARY = 'litespeed_img_optm_rmbk_summary' ;
|
46 |
|
47 |
private $wp_upload_dir ;
|
48 |
private $tmp_pid ;
|
1363 |
update_option( self::DB_IMG_OPTM_SUMMARY, $summary ) ;
|
1364 |
}
|
1365 |
|
1366 |
+
/**
|
1367 |
+
* Calculate bkup original images storage
|
1368 |
+
*
|
1369 |
+
* @since 2.2.6
|
1370 |
+
* @access private
|
1371 |
+
*/
|
1372 |
+
private function _calc_bkup()
|
1373 |
+
{
|
1374 |
+
global $wpdb ;
|
1375 |
+
$q = "SELECT * FROM $this->_table_img_optm WHERE optm_status = %s" ;
|
1376 |
+
$list = $wpdb->get_results( $wpdb->prepare( $q, self::DB_IMG_OPTIMIZE_STATUS_PULLED ) ) ;
|
1377 |
+
|
1378 |
+
$i = 0 ;
|
1379 |
+
$total_size = 0 ;
|
1380 |
+
foreach ( $list as $v ) {
|
1381 |
+
$local_file = $this->wp_upload_dir[ 'basedir' ] . '/' . $v->src ;
|
1382 |
+
|
1383 |
+
$extension = pathinfo( $local_file, PATHINFO_EXTENSION ) ;
|
1384 |
+
$local_filename = substr( $local_file, 0, - strlen( $extension ) - 1 ) ;
|
1385 |
+
$bk_file = $local_filename . '.bk.' . $extension ;
|
1386 |
+
|
1387 |
+
// switch to ori
|
1388 |
+
if ( ! file_exists( $bk_file ) ) {
|
1389 |
+
continue ;
|
1390 |
+
}
|
1391 |
+
|
1392 |
+
$i ++ ;
|
1393 |
+
$total_size += filesize( $bk_file ) ;
|
1394 |
+
|
1395 |
+
}
|
1396 |
+
|
1397 |
+
$data = array(
|
1398 |
+
'date' => time(),
|
1399 |
+
'count' => $i,
|
1400 |
+
'sum' => $total_size,
|
1401 |
+
) ;
|
1402 |
+
update_option( self::DB_IMG_OPTM_BK_SUMMARY, $data ) ;
|
1403 |
+
|
1404 |
+
LiteSpeed_Cache_Log::debug( '[Img_Optm] _calc_bkup total: ' . $i . ' [size] ' . $total_size ) ;
|
1405 |
+
|
1406 |
+
}
|
1407 |
+
|
1408 |
+
/**
|
1409 |
+
* Delete bkup original images storage
|
1410 |
+
*
|
1411 |
+
* @since 2.2.6
|
1412 |
+
* @access private
|
1413 |
+
*/
|
1414 |
+
private function _rm_bkup()
|
1415 |
+
{
|
1416 |
+
global $wpdb ;
|
1417 |
+
$q = "SELECT * FROM $this->_table_img_optm WHERE optm_status = %s" ;
|
1418 |
+
$list = $wpdb->get_results( $wpdb->prepare( $q, self::DB_IMG_OPTIMIZE_STATUS_PULLED ) ) ;
|
1419 |
+
|
1420 |
+
$i = 0 ;
|
1421 |
+
$total_size = 0 ;
|
1422 |
+
foreach ( $list as $v ) {
|
1423 |
+
$local_file = $this->wp_upload_dir[ 'basedir' ] . '/' . $v->src ;
|
1424 |
+
|
1425 |
+
$extension = pathinfo( $local_file, PATHINFO_EXTENSION ) ;
|
1426 |
+
$local_filename = substr( $local_file, 0, - strlen( $extension ) - 1 ) ;
|
1427 |
+
$bk_file = $local_filename . '.bk.' . $extension ;
|
1428 |
+
|
1429 |
+
// switch to ori
|
1430 |
+
if ( ! file_exists( $bk_file ) ) {
|
1431 |
+
continue ;
|
1432 |
+
}
|
1433 |
+
|
1434 |
+
$i ++ ;
|
1435 |
+
$total_size += filesize( $bk_file ) ;
|
1436 |
+
|
1437 |
+
unlink( $bk_file ) ;
|
1438 |
+
}
|
1439 |
+
|
1440 |
+
$data = array(
|
1441 |
+
'date' => time(),
|
1442 |
+
'count' => $i,
|
1443 |
+
'sum' => $total_size,
|
1444 |
+
) ;
|
1445 |
+
update_option( self::DB_IMG_OPTM_RMBK_SUMMARY, $data ) ;
|
1446 |
+
|
1447 |
+
LiteSpeed_Cache_Log::debug( '[Img_Optm] _rm_bkup total: ' . $i . ' [size] ' . $total_size ) ;
|
1448 |
+
|
1449 |
+
$msg = sprintf( __( 'Removed %1$s images and saved %2$s successfully.', 'litespeed-cache' ), $i, LiteSpeed_Cache_Utility::real_size( $total_size ) ) ;
|
1450 |
+
LiteSpeed_Cache_Admin_Display::succeed( $msg ) ;
|
1451 |
+
|
1452 |
+
}
|
1453 |
+
|
1454 |
/**
|
1455 |
* Get optm summary
|
1456 |
*
|
1467 |
return ! empty( $optm_summary[ $field ] ) ? $optm_summary[ $field ] : 0 ;
|
1468 |
}
|
1469 |
|
1470 |
+
/**
|
1471 |
+
* Get optm bkup usage summary
|
1472 |
+
*
|
1473 |
+
* @since 2.2.6
|
1474 |
+
* @access public
|
1475 |
+
*/
|
1476 |
+
public function storage_data()
|
1477 |
+
{
|
1478 |
+
$summary = get_option( self::DB_IMG_OPTM_BK_SUMMARY, array() ) ;
|
1479 |
+
$rm_log = get_option( self::DB_IMG_OPTM_RMBK_SUMMARY, array() ) ;
|
1480 |
+
|
1481 |
+
return array( $summary, $rm_log ) ;
|
1482 |
+
}
|
1483 |
+
|
1484 |
/**
|
1485 |
* Count images
|
1486 |
*
|
1720 |
$type = LiteSpeed_Cache_Router::verify_type() ;
|
1721 |
|
1722 |
switch ( $type ) {
|
1723 |
+
case self::TYPE_CALC_BKUP :
|
1724 |
+
$instance->_calc_bkup() ;
|
1725 |
+
break ;
|
1726 |
+
|
1727 |
+
case self::TYPE_RM_BKUP :
|
1728 |
+
$instance->_rm_bkup() ;
|
1729 |
+
break ;
|
1730 |
+
|
1731 |
case self::TYPE_SYNC_DATA :
|
1732 |
$instance->_sync_data() ;
|
1733 |
break ;
|
inc/litespeed-cache.class.php
CHANGED
@@ -19,7 +19,7 @@ class LiteSpeed_Cache
|
|
19 |
private static $_instance ;
|
20 |
|
21 |
const PLUGIN_NAME = 'litespeed-cache' ;
|
22 |
-
const PLUGIN_VERSION = '2.2.
|
23 |
|
24 |
const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
|
25 |
|
19 |
private static $_instance ;
|
20 |
|
21 |
const PLUGIN_NAME = 'litespeed-cache' ;
|
22 |
+
const PLUGIN_VERSION = '2.2.6' ;
|
23 |
|
24 |
const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
|
25 |
|
inc/utility.class.php
CHANGED
@@ -63,6 +63,10 @@ class LiteSpeed_Cache_Utility
|
|
63 |
$res .= $seconds . 's' ;
|
64 |
}
|
65 |
|
|
|
|
|
|
|
|
|
66 |
$res = $backward ? sprintf( __( ' %s ago', 'litespeed-cache' ), $res ) : $res ;
|
67 |
|
68 |
return $res ;
|
63 |
$res .= $seconds . 's' ;
|
64 |
}
|
65 |
|
66 |
+
if ( ! $res ) {
|
67 |
+
return $backward ? __( 'just now', 'litespeed-cache' ) : __( 'right now', 'litespeed-cache' ) ;
|
68 |
+
}
|
69 |
+
|
70 |
$res = $backward ? sprintf( __( ' %s ago', 'litespeed-cache' ), $res ) : $res ;
|
71 |
|
72 |
return $res ;
|
includes/litespeed-cache-utility.class.php
CHANGED
@@ -63,6 +63,10 @@ class LiteSpeed_Cache_Utility
|
|
63 |
$res .= $seconds . 's' ;
|
64 |
}
|
65 |
|
|
|
|
|
|
|
|
|
66 |
$res = $backward ? sprintf( __( ' %s ago', 'litespeed-cache' ), $res ) : $res ;
|
67 |
|
68 |
return $res ;
|
63 |
$res .= $seconds . 's' ;
|
64 |
}
|
65 |
|
66 |
+
if ( ! $res ) {
|
67 |
+
return $backward ? __( 'just now', 'litespeed-cache' ) : __( 'right now', 'litespeed-cache' ) ;
|
68 |
+
}
|
69 |
+
|
70 |
$res = $backward ? sprintf( __( ' %s ago', 'litespeed-cache' ), $res ) : $res ;
|
71 |
|
72 |
return $res ;
|
includes/litespeed-cache.class.php
CHANGED
@@ -19,7 +19,7 @@ class LiteSpeed_Cache
|
|
19 |
private static $_instance ;
|
20 |
|
21 |
const PLUGIN_NAME = 'litespeed-cache' ;
|
22 |
-
const PLUGIN_VERSION = '2.2.
|
23 |
|
24 |
const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
|
25 |
|
19 |
private static $_instance ;
|
20 |
|
21 |
const PLUGIN_NAME = 'litespeed-cache' ;
|
22 |
+
const PLUGIN_VERSION = '2.2.6' ;
|
23 |
|
24 |
const PAGE_EDIT_HTACCESS = 'lscache-edit-htaccess' ;
|
25 |
|
languages/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 2.2.
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
|
7 |
-
"POT-Creation-Date: 2018-05-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -113,7 +113,7 @@ msgid "Server variable(s) %s available to override this setting."
|
|
113 |
msgstr ""
|
114 |
|
115 |
#: admin/litespeed-cache-admin-display.class.php:937
|
116 |
-
#: admin/tpl/image_optimization.php:
|
117 |
#: admin/tpl/manage/manage_cdn.php:60
|
118 |
#: admin/tpl/setting/settings_advanced.php:10
|
119 |
#: admin/tpl/setting/settings_advanced.php:39
|
@@ -469,25 +469,25 @@ msgstr ""
|
|
469 |
msgid "Threads"
|
470 |
msgstr ""
|
471 |
|
472 |
-
#: admin/litespeed-cache-admin.class.php:
|
473 |
msgid ""
|
474 |
"For this scenario only, the network admin may uncheck \"Check Advanced Cache"
|
475 |
"\" in LiteSpeed Cache settings."
|
476 |
msgstr ""
|
477 |
|
478 |
-
#: admin/litespeed-cache-admin.class.php:
|
479 |
msgid ""
|
480 |
"For this scenario only, please uncheck \"Check Advanced Cache\" in LiteSpeed "
|
481 |
"Cache settings."
|
482 |
msgstr ""
|
483 |
|
484 |
-
#: admin/litespeed-cache-admin.class.php:
|
485 |
msgid ""
|
486 |
"Please disable/deactivate any other Full Page Cache solutions that are "
|
487 |
"currently being used."
|
488 |
msgstr ""
|
489 |
|
490 |
-
#: admin/litespeed-cache-admin.class.php:
|
491 |
msgid ""
|
492 |
"LiteSpeed Cache does work with other cache solutions, but only their non-"
|
493 |
"page caching offerings—such as minifying css/js files."
|
@@ -543,8 +543,8 @@ msgstr ""
|
|
543 |
msgid "Disable"
|
544 |
msgstr ""
|
545 |
|
546 |
-
#: admin/tpl/crawler.php:92 admin/tpl/
|
547 |
-
#: admin/tpl/manage/manage_cdn.php:15
|
548 |
#: admin/tpl/setting/settings_optimize.php:13 admin/tpl/settings.php:163
|
549 |
msgid "WARNING"
|
550 |
msgstr ""
|
@@ -750,235 +750,235 @@ msgstr ""
|
|
750 |
msgid "A TTL of 0 indicates do not cache."
|
751 |
msgstr ""
|
752 |
|
753 |
-
#: admin/tpl/image_optimization.php:
|
754 |
msgid "Level"
|
755 |
msgstr ""
|
756 |
|
757 |
-
#: admin/tpl/image_optimization.php:
|
758 |
msgid "Credit"
|
759 |
msgstr ""
|
760 |
|
761 |
-
#: admin/tpl/image_optimization.php:
|
762 |
msgid "Credit recovers with each successful pull."
|
763 |
msgstr ""
|
764 |
|
765 |
-
#: admin/tpl/image_optimization.php:
|
766 |
msgid "Total Reduction"
|
767 |
msgstr ""
|
768 |
|
769 |
-
#: admin/tpl/image_optimization.php:
|
770 |
msgid "Images pulled"
|
771 |
msgstr ""
|
772 |
|
773 |
-
#: admin/tpl/image_optimization.php:
|
774 |
msgid "Images failed to fetch"
|
775 |
msgstr ""
|
776 |
|
777 |
-
#: admin/tpl/image_optimization.php:
|
778 |
msgid "Images failed to notify"
|
779 |
msgstr ""
|
780 |
|
781 |
-
#: admin/tpl/image_optimization.php:
|
782 |
msgid "Images failed to pull"
|
783 |
msgstr ""
|
784 |
|
785 |
-
#: admin/tpl/image_optimization.php:
|
786 |
msgid "Last Request"
|
787 |
msgstr ""
|
788 |
|
789 |
-
#: admin/tpl/image_optimization.php:
|
790 |
msgid "Click the %s button."
|
791 |
msgstr ""
|
792 |
|
793 |
-
#: admin/tpl/image_optimization.php:
|
794 |
-
#: admin/tpl/image_optimization.php:
|
795 |
msgid "Update Status"
|
796 |
msgstr ""
|
797 |
|
798 |
-
#: admin/tpl/image_optimization.php:
|
799 |
-
#: admin/tpl/image_optimization.php:
|
800 |
msgid "Send Optimization Request"
|
801 |
msgstr ""
|
802 |
|
803 |
-
#: admin/tpl/image_optimization.php:
|
804 |
msgid "Click the %s button or wait for the cron job to finish the pull action."
|
805 |
msgstr ""
|
806 |
|
807 |
-
#: admin/tpl/image_optimization.php:
|
808 |
msgid "Pull Images"
|
809 |
msgstr ""
|
810 |
|
811 |
-
#: admin/tpl/image_optimization.php:
|
812 |
msgid "Repeat the above steps until you have leveled up."
|
813 |
msgstr ""
|
814 |
|
815 |
-
#: admin/tpl/image_optimization.php:
|
816 |
msgid "LiteSpeed Cache Image Optimization"
|
817 |
msgstr ""
|
818 |
|
819 |
-
#: admin/tpl/image_optimization.php:
|
820 |
msgid "How to Level Up"
|
821 |
msgstr ""
|
822 |
|
823 |
-
#: admin/tpl/image_optimization.php:
|
824 |
msgid "Optimization Summary"
|
825 |
msgstr ""
|
826 |
|
827 |
-
#: admin/tpl/image_optimization.php:
|
828 |
msgid ""
|
829 |
"This will communicate with LiteSpeed's Image Optimization Server and "
|
830 |
"retrieve the most recent status."
|
831 |
msgstr ""
|
832 |
|
833 |
-
#: admin/tpl/image_optimization.php:
|
834 |
msgid "Image Information"
|
835 |
msgstr ""
|
836 |
|
837 |
-
#: admin/tpl/image_optimization.php:
|
838 |
msgid "Images total"
|
839 |
msgstr ""
|
840 |
|
841 |
-
#: admin/tpl/image_optimization.php:
|
842 |
msgid "What is a group?"
|
843 |
msgstr ""
|
844 |
|
845 |
-
#: admin/tpl/image_optimization.php:
|
846 |
msgid "Images not yet requested"
|
847 |
msgstr ""
|
848 |
|
849 |
-
#: admin/tpl/image_optimization.php:
|
850 |
msgid "Please press the %s button before sending a new request."
|
851 |
msgstr ""
|
852 |
|
853 |
-
#: admin/tpl/image_optimization.php:
|
854 |
msgid ""
|
855 |
"This will send the optimization request and the images to LiteSpeed's Image "
|
856 |
"Optimization Server."
|
857 |
msgstr ""
|
858 |
|
859 |
-
#: admin/tpl/image_optimization.php:
|
860 |
msgid "You can send at most %s images at once."
|
861 |
msgstr ""
|
862 |
|
863 |
-
#: admin/tpl/image_optimization.php:
|
864 |
msgid "Images requested"
|
865 |
msgstr ""
|
866 |
|
867 |
-
#: admin/tpl/image_optimization.php:
|
868 |
msgid ""
|
869 |
"After LiteSpeed's Image Optimization Server finishes optimization, it will "
|
870 |
"notify your site to pull the optimized images."
|
871 |
msgstr ""
|
872 |
|
873 |
-
#: admin/tpl/image_optimization.php:
|
874 |
msgid "This process is automatic."
|
875 |
msgstr ""
|
876 |
|
877 |
-
#: admin/tpl/image_optimization.php:
|
878 |
msgid "Images notified to pull"
|
879 |
msgstr ""
|
880 |
|
881 |
-
#: admin/tpl/image_optimization.php:
|
882 |
msgid "Only press the button if the pull cron job is disabled."
|
883 |
msgstr ""
|
884 |
|
885 |
-
#: admin/tpl/image_optimization.php:
|
886 |
msgid "Images will be pulled automatically if the cron job is running."
|
887 |
msgstr ""
|
888 |
|
889 |
-
#: admin/tpl/image_optimization.php:
|
890 |
msgid "Last pull initiated by cron at %s."
|
891 |
msgstr ""
|
892 |
|
893 |
-
#: admin/tpl/image_optimization.php:
|
894 |
msgid "Images optimized and pulled"
|
895 |
msgstr ""
|
896 |
|
897 |
-
#: admin/tpl/image_optimization.php:
|
898 |
msgid "Images failed to optimize"
|
899 |
msgstr ""
|
900 |
|
901 |
-
#: admin/tpl/image_optimization.php:
|
902 |
msgid "Images failed with other errors"
|
903 |
msgstr ""
|
904 |
|
905 |
-
#: admin/tpl/image_optimization.php:
|
906 |
msgid "Image files missing"
|
907 |
msgstr ""
|
908 |
|
909 |
-
#: admin/tpl/image_optimization.php:
|
910 |
msgid "Images with wrong meta"
|
911 |
msgstr ""
|
912 |
|
913 |
-
#: admin/tpl/image_optimization.php:
|
914 |
msgid "Revert Optimization"
|
915 |
msgstr ""
|
916 |
|
917 |
-
#: admin/tpl/image_optimization.php:
|
918 |
msgid ""
|
919 |
"Switch all images in the media library back to their original unoptimized "
|
920 |
"versions."
|
921 |
msgstr ""
|
922 |
|
923 |
-
#: admin/tpl/image_optimization.php:
|
924 |
msgid "Undo Optimization"
|
925 |
msgstr ""
|
926 |
|
927 |
-
#: admin/tpl/image_optimization.php:
|
928 |
msgid "Revert all optimized images back to their original versions."
|
929 |
msgstr ""
|
930 |
|
931 |
-
#: admin/tpl/image_optimization.php:
|
932 |
msgid "Re-do Optimization"
|
933 |
msgstr ""
|
934 |
|
935 |
-
#: admin/tpl/image_optimization.php:
|
936 |
msgid "Switch back to using optimized images."
|
937 |
msgstr ""
|
938 |
|
939 |
-
#: admin/tpl/image_optimization.php:
|
940 |
msgid "Results can be checked in <a %s>Media Library</a>."
|
941 |
msgstr ""
|
942 |
|
943 |
-
#: admin/tpl/image_optimization.php:
|
944 |
msgid "Send New Thumbnail Requests"
|
945 |
msgstr ""
|
946 |
|
947 |
-
#: admin/tpl/image_optimization.php:
|
948 |
msgid ""
|
949 |
"Scan for any new unoptimized image thumbnail sizes and resend necessary "
|
950 |
"image optimization requests."
|
951 |
msgstr ""
|
952 |
|
953 |
-
#: admin/tpl/image_optimization.php:
|
954 |
msgid "Reset IAPI Key"
|
955 |
msgstr ""
|
956 |
|
957 |
-
#: admin/tpl/image_optimization.php:
|
958 |
msgid ""
|
959 |
"The current IAPI key must be reset after changing home URL or domain before "
|
960 |
"making any further optimization requests."
|
961 |
msgstr ""
|
962 |
|
963 |
-
#: admin/tpl/image_optimization.php:
|
964 |
msgid "Clean Up Unfinished Data"
|
965 |
msgstr ""
|
966 |
|
967 |
-
#: admin/tpl/image_optimization.php:
|
968 |
msgid "Remove all previous unfinished image optimization requests."
|
969 |
msgstr ""
|
970 |
|
971 |
-
#: admin/tpl/image_optimization.php:
|
972 |
msgid "Destroy All Optimization Data!"
|
973 |
msgstr ""
|
974 |
|
975 |
-
#: admin/tpl/image_optimization.php:
|
976 |
msgid ""
|
977 |
"Remove all previous image optimization requests/results, revert completed "
|
978 |
"optimizations, and delete all optimization files."
|
979 |
msgstr ""
|
980 |
|
981 |
-
#: admin/tpl/image_optimization.php:
|
982 |
#: admin/tpl/setting/settings_advanced.php:65
|
983 |
#: admin/tpl/setting/settings_cdn.php:97
|
984 |
#: admin/tpl/setting/settings_crawler.php:22
|
@@ -1000,10 +1000,64 @@ msgstr ""
|
|
1000 |
msgid "NOTE"
|
1001 |
msgstr ""
|
1002 |
|
1003 |
-
#: admin/tpl/image_optimization.php:
|
1004 |
msgid "This will also reset the credit level."
|
1005 |
msgstr ""
|
1006 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1007 |
#: admin/tpl/import_export.php:9
|
1008 |
msgid "LiteSpeed Cache Import / Export"
|
1009 |
msgstr ""
|
@@ -1047,7 +1101,7 @@ msgstr ""
|
|
1047 |
msgid "Rate %s on %s"
|
1048 |
msgstr ""
|
1049 |
|
1050 |
-
#. #-#-#-#-# litespeed-cache.pot (LiteSpeed Cache 2.2.
|
1051 |
#. Plugin Name of the plugin/theme
|
1052 |
#: admin/tpl/inc/admin_footer.php:6 inc/gui.class.php:348
|
1053 |
#: includes/litespeed-cache-gui.class.php:348
|
@@ -3760,66 +3814,70 @@ msgstr ""
|
|
3760 |
msgid "LSCache"
|
3761 |
msgstr ""
|
3762 |
|
3763 |
-
#: inc/img_optm.class.php:
|
3764 |
msgid "Failed to communicate with LiteSpeed IAPI server"
|
3765 |
msgstr ""
|
3766 |
|
3767 |
-
#: inc/img_optm.class.php:
|
3768 |
msgid "Communicated with LiteSpeed Image Optimization Server successfully."
|
3769 |
msgstr ""
|
3770 |
|
3771 |
-
#: inc/img_optm.class.php:
|
3772 |
-
#: inc/img_optm.class.php:
|
3773 |
msgid "No image found."
|
3774 |
msgstr ""
|
3775 |
|
3776 |
-
#: inc/img_optm.class.php:
|
3777 |
msgid "Number of images in one image group (%s) exceeds the credit (%s)"
|
3778 |
msgstr ""
|
3779 |
|
3780 |
-
#: inc/img_optm.class.php:
|
3781 |
msgid "Requested successfully."
|
3782 |
msgstr ""
|
3783 |
|
3784 |
-
#: inc/img_optm.class.php:
|
3785 |
msgid "Optimized successfully."
|
3786 |
msgstr ""
|
3787 |
|
3788 |
-
#: inc/img_optm.class.php:
|
3789 |
msgid "Pushed %1$s to LiteSpeed optimization server, accepted %2$s."
|
3790 |
msgstr ""
|
3791 |
|
3792 |
-
#: inc/img_optm.class.php:
|
3793 |
msgid "Failed to push to LiteSpeed IAPI server: %s"
|
3794 |
msgstr ""
|
3795 |
|
3796 |
-
#: inc/img_optm.class.php:
|
3797 |
msgid "Failed to parse data from LiteSpeed IAPI server: %s"
|
3798 |
msgstr ""
|
3799 |
|
3800 |
-
#: inc/img_optm.class.php:
|
3801 |
msgid "Destroy unfinished data successfully."
|
3802 |
msgstr ""
|
3803 |
|
3804 |
-
#: inc/img_optm.class.php:
|
3805 |
msgid ""
|
3806 |
"Pushed %1$s groups with %2$s images to LiteSpeed optimization server, "
|
3807 |
"accepted %3$s groups with %4$s images."
|
3808 |
msgstr ""
|
3809 |
|
3810 |
-
#: inc/img_optm.class.php:
|
|
|
|
|
|
|
|
|
3811 |
msgid "Disabled WebP file successfully."
|
3812 |
msgstr ""
|
3813 |
|
3814 |
-
#: inc/img_optm.class.php:
|
3815 |
msgid "Enabled WebP file successfully."
|
3816 |
msgstr ""
|
3817 |
|
3818 |
-
#: inc/img_optm.class.php:
|
3819 |
msgid "Restored original file successfully."
|
3820 |
msgstr ""
|
3821 |
|
3822 |
-
#: inc/img_optm.class.php:
|
3823 |
msgid "Switched to optimized file successfully."
|
3824 |
msgstr ""
|
3825 |
|
@@ -3935,7 +3993,15 @@ msgstr ""
|
|
3935 |
msgid "LiteSpeed Cache Custom Cron Crawler"
|
3936 |
msgstr ""
|
3937 |
|
3938 |
-
#: inc/utility.class.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3939 |
msgid " %s ago"
|
3940 |
msgstr ""
|
3941 |
|
2 |
# This file is distributed under the same license as the LiteSpeed Cache package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: LiteSpeed Cache 2.2.6\n"
|
6 |
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/litespeed-cache\n"
|
7 |
+
"POT-Creation-Date: 2018-05-24 18:15:42+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
113 |
msgstr ""
|
114 |
|
115 |
#: admin/litespeed-cache-admin-display.class.php:937
|
116 |
+
#: admin/tpl/image_optimization.php:151 admin/tpl/image_optimization.php:226
|
117 |
#: admin/tpl/manage/manage_cdn.php:60
|
118 |
#: admin/tpl/setting/settings_advanced.php:10
|
119 |
#: admin/tpl/setting/settings_advanced.php:39
|
469 |
msgid "Threads"
|
470 |
msgstr ""
|
471 |
|
472 |
+
#: admin/litespeed-cache-admin.class.php:217
|
473 |
msgid ""
|
474 |
"For this scenario only, the network admin may uncheck \"Check Advanced Cache"
|
475 |
"\" in LiteSpeed Cache settings."
|
476 |
msgstr ""
|
477 |
|
478 |
+
#: admin/litespeed-cache-admin.class.php:219
|
479 |
msgid ""
|
480 |
"For this scenario only, please uncheck \"Check Advanced Cache\" in LiteSpeed "
|
481 |
"Cache settings."
|
482 |
msgstr ""
|
483 |
|
484 |
+
#: admin/litespeed-cache-admin.class.php:221
|
485 |
msgid ""
|
486 |
"Please disable/deactivate any other Full Page Cache solutions that are "
|
487 |
"currently being used."
|
488 |
msgstr ""
|
489 |
|
490 |
+
#: admin/litespeed-cache-admin.class.php:222
|
491 |
msgid ""
|
492 |
"LiteSpeed Cache does work with other cache solutions, but only their non-"
|
493 |
"page caching offerings—such as minifying css/js files."
|
543 |
msgid "Disable"
|
544 |
msgstr ""
|
545 |
|
546 |
+
#: admin/tpl/crawler.php:92 admin/tpl/image_optimization.php:332
|
547 |
+
#: admin/tpl/inc/check_cache_disabled.php:31 admin/tpl/manage/manage_cdn.php:15
|
548 |
#: admin/tpl/setting/settings_optimize.php:13 admin/tpl/settings.php:163
|
549 |
msgid "WARNING"
|
550 |
msgstr ""
|
750 |
msgid "A TTL of 0 indicates do not cache."
|
751 |
msgstr ""
|
752 |
|
753 |
+
#: admin/tpl/image_optimization.php:17
|
754 |
msgid "Level"
|
755 |
msgstr ""
|
756 |
|
757 |
+
#: admin/tpl/image_optimization.php:21
|
758 |
msgid "Credit"
|
759 |
msgstr ""
|
760 |
|
761 |
+
#: admin/tpl/image_optimization.php:22
|
762 |
msgid "Credit recovers with each successful pull."
|
763 |
msgstr ""
|
764 |
|
765 |
+
#: admin/tpl/image_optimization.php:26
|
766 |
msgid "Total Reduction"
|
767 |
msgstr ""
|
768 |
|
769 |
+
#: admin/tpl/image_optimization.php:30
|
770 |
msgid "Images pulled"
|
771 |
msgstr ""
|
772 |
|
773 |
+
#: admin/tpl/image_optimization.php:33 admin/tpl/image_optimization.php:201
|
774 |
msgid "Images failed to fetch"
|
775 |
msgstr ""
|
776 |
|
777 |
+
#: admin/tpl/image_optimization.php:36
|
778 |
msgid "Images failed to notify"
|
779 |
msgstr ""
|
780 |
|
781 |
+
#: admin/tpl/image_optimization.php:39
|
782 |
msgid "Images failed to pull"
|
783 |
msgstr ""
|
784 |
|
785 |
+
#: admin/tpl/image_optimization.php:42
|
786 |
msgid "Last Request"
|
787 |
msgstr ""
|
788 |
|
789 |
+
#: admin/tpl/image_optimization.php:53 admin/tpl/image_optimization.php:54
|
790 |
msgid "Click the %s button."
|
791 |
msgstr ""
|
792 |
|
793 |
+
#: admin/tpl/image_optimization.php:53 admin/tpl/image_optimization.php:115
|
794 |
+
#: admin/tpl/image_optimization.php:149
|
795 |
msgid "Update Status"
|
796 |
msgstr ""
|
797 |
|
798 |
+
#: admin/tpl/image_optimization.php:54 admin/tpl/image_optimization.php:146
|
799 |
+
#: admin/tpl/image_optimization.php:154
|
800 |
msgid "Send Optimization Request"
|
801 |
msgstr ""
|
802 |
|
803 |
+
#: admin/tpl/image_optimization.php:55
|
804 |
msgid "Click the %s button or wait for the cron job to finish the pull action."
|
805 |
msgstr ""
|
806 |
|
807 |
+
#: admin/tpl/image_optimization.php:55 admin/tpl/image_optimization.php:181
|
808 |
msgid "Pull Images"
|
809 |
msgstr ""
|
810 |
|
811 |
+
#: admin/tpl/image_optimization.php:56
|
812 |
msgid "Repeat the above steps until you have leveled up."
|
813 |
msgstr ""
|
814 |
|
815 |
+
#: admin/tpl/image_optimization.php:71
|
816 |
msgid "LiteSpeed Cache Image Optimization"
|
817 |
msgstr ""
|
818 |
|
819 |
+
#: admin/tpl/image_optimization.php:82
|
820 |
msgid "How to Level Up"
|
821 |
msgstr ""
|
822 |
|
823 |
+
#: admin/tpl/image_optimization.php:85
|
824 |
msgid "Optimization Summary"
|
825 |
msgstr ""
|
826 |
|
827 |
+
#: admin/tpl/image_optimization.php:118
|
828 |
msgid ""
|
829 |
"This will communicate with LiteSpeed's Image Optimization Server and "
|
830 |
"retrieve the most recent status."
|
831 |
msgstr ""
|
832 |
|
833 |
+
#: admin/tpl/image_optimization.php:123
|
834 |
msgid "Image Information"
|
835 |
msgstr ""
|
836 |
|
837 |
+
#: admin/tpl/image_optimization.php:132
|
838 |
msgid "Images total"
|
839 |
msgstr ""
|
840 |
|
841 |
+
#: admin/tpl/image_optimization.php:134
|
842 |
msgid "What is a group?"
|
843 |
msgstr ""
|
844 |
|
845 |
+
#: admin/tpl/image_optimization.php:137
|
846 |
msgid "Images not yet requested"
|
847 |
msgstr ""
|
848 |
|
849 |
+
#: admin/tpl/image_optimization.php:149
|
850 |
msgid "Please press the %s button before sending a new request."
|
851 |
msgstr ""
|
852 |
|
853 |
+
#: admin/tpl/image_optimization.php:157
|
854 |
msgid ""
|
855 |
"This will send the optimization request and the images to LiteSpeed's Image "
|
856 |
"Optimization Server."
|
857 |
msgstr ""
|
858 |
|
859 |
+
#: admin/tpl/image_optimization.php:158
|
860 |
msgid "You can send at most %s images at once."
|
861 |
msgstr ""
|
862 |
|
863 |
+
#: admin/tpl/image_optimization.php:166
|
864 |
msgid "Images requested"
|
865 |
msgstr ""
|
866 |
|
867 |
+
#: admin/tpl/image_optimization.php:171
|
868 |
msgid ""
|
869 |
"After LiteSpeed's Image Optimization Server finishes optimization, it will "
|
870 |
"notify your site to pull the optimized images."
|
871 |
msgstr ""
|
872 |
|
873 |
+
#: admin/tpl/image_optimization.php:172
|
874 |
msgid "This process is automatic."
|
875 |
msgstr ""
|
876 |
|
877 |
+
#: admin/tpl/image_optimization.php:175
|
878 |
msgid "Images notified to pull"
|
879 |
msgstr ""
|
880 |
|
881 |
+
#: admin/tpl/image_optimization.php:184
|
882 |
msgid "Only press the button if the pull cron job is disabled."
|
883 |
msgstr ""
|
884 |
|
885 |
+
#: admin/tpl/image_optimization.php:185
|
886 |
msgid "Images will be pulled automatically if the cron job is running."
|
887 |
msgstr ""
|
888 |
|
889 |
+
#: admin/tpl/image_optimization.php:189
|
890 |
msgid "Last pull initiated by cron at %s."
|
891 |
msgstr ""
|
892 |
|
893 |
+
#: admin/tpl/image_optimization.php:194
|
894 |
msgid "Images optimized and pulled"
|
895 |
msgstr ""
|
896 |
|
897 |
+
#: admin/tpl/image_optimization.php:206
|
898 |
msgid "Images failed to optimize"
|
899 |
msgstr ""
|
900 |
|
901 |
+
#: admin/tpl/image_optimization.php:211
|
902 |
msgid "Images failed with other errors"
|
903 |
msgstr ""
|
904 |
|
905 |
+
#: admin/tpl/image_optimization.php:216
|
906 |
msgid "Image files missing"
|
907 |
msgstr ""
|
908 |
|
909 |
+
#: admin/tpl/image_optimization.php:221
|
910 |
msgid "Images with wrong meta"
|
911 |
msgstr ""
|
912 |
|
913 |
+
#: admin/tpl/image_optimization.php:231
|
914 |
msgid "Revert Optimization"
|
915 |
msgstr ""
|
916 |
|
917 |
+
#: admin/tpl/image_optimization.php:234
|
918 |
msgid ""
|
919 |
"Switch all images in the media library back to their original unoptimized "
|
920 |
"versions."
|
921 |
msgstr ""
|
922 |
|
923 |
+
#: admin/tpl/image_optimization.php:240
|
924 |
msgid "Undo Optimization"
|
925 |
msgstr ""
|
926 |
|
927 |
+
#: admin/tpl/image_optimization.php:243
|
928 |
msgid "Revert all optimized images back to their original versions."
|
929 |
msgstr ""
|
930 |
|
931 |
+
#: admin/tpl/image_optimization.php:249
|
932 |
msgid "Re-do Optimization"
|
933 |
msgstr ""
|
934 |
|
935 |
+
#: admin/tpl/image_optimization.php:252
|
936 |
msgid "Switch back to using optimized images."
|
937 |
msgstr ""
|
938 |
|
939 |
+
#: admin/tpl/image_optimization.php:257
|
940 |
msgid "Results can be checked in <a %s>Media Library</a>."
|
941 |
msgstr ""
|
942 |
|
943 |
+
#: admin/tpl/image_optimization.php:261
|
944 |
msgid "Send New Thumbnail Requests"
|
945 |
msgstr ""
|
946 |
|
947 |
+
#: admin/tpl/image_optimization.php:264
|
948 |
msgid ""
|
949 |
"Scan for any new unoptimized image thumbnail sizes and resend necessary "
|
950 |
"image optimization requests."
|
951 |
msgstr ""
|
952 |
|
953 |
+
#: admin/tpl/image_optimization.php:269
|
954 |
msgid "Reset IAPI Key"
|
955 |
msgstr ""
|
956 |
|
957 |
+
#: admin/tpl/image_optimization.php:272
|
958 |
msgid ""
|
959 |
"The current IAPI key must be reset after changing home URL or domain before "
|
960 |
"making any further optimization requests."
|
961 |
msgstr ""
|
962 |
|
963 |
+
#: admin/tpl/image_optimization.php:277
|
964 |
msgid "Clean Up Unfinished Data"
|
965 |
msgstr ""
|
966 |
|
967 |
+
#: admin/tpl/image_optimization.php:280
|
968 |
msgid "Remove all previous unfinished image optimization requests."
|
969 |
msgstr ""
|
970 |
|
971 |
+
#: admin/tpl/image_optimization.php:285
|
972 |
msgid "Destroy All Optimization Data!"
|
973 |
msgstr ""
|
974 |
|
975 |
+
#: admin/tpl/image_optimization.php:288
|
976 |
msgid ""
|
977 |
"Remove all previous image optimization requests/results, revert completed "
|
978 |
"optimizations, and delete all optimization files."
|
979 |
msgstr ""
|
980 |
|
981 |
+
#: admin/tpl/image_optimization.php:290
|
982 |
#: admin/tpl/setting/settings_advanced.php:65
|
983 |
#: admin/tpl/setting/settings_cdn.php:97
|
984 |
#: admin/tpl/setting/settings_crawler.php:22
|
1000 |
msgid "NOTE"
|
1001 |
msgstr ""
|
1002 |
|
1003 |
+
#: admin/tpl/image_optimization.php:291
|
1004 |
msgid "This will also reset the credit level."
|
1005 |
msgstr ""
|
1006 |
|
1007 |
+
#: admin/tpl/image_optimization.php:297
|
1008 |
+
msgid "Storage Optimization"
|
1009 |
+
msgstr ""
|
1010 |
+
|
1011 |
+
#: admin/tpl/image_optimization.php:300
|
1012 |
+
msgid "Calculate Original Image Storage"
|
1013 |
+
msgstr ""
|
1014 |
+
|
1015 |
+
#: admin/tpl/image_optimization.php:303
|
1016 |
+
msgid ""
|
1017 |
+
"A backup of each image is saved before it is optimized. This button will "
|
1018 |
+
"calculate the total amount of disk space used by these backups."
|
1019 |
+
msgstr ""
|
1020 |
+
|
1021 |
+
#: admin/tpl/image_optimization.php:308
|
1022 |
+
msgid "Last calculated"
|
1023 |
+
msgstr ""
|
1024 |
+
|
1025 |
+
#: admin/tpl/image_optimization.php:312 admin/tpl/image_optimization.php:343
|
1026 |
+
msgid "Files"
|
1027 |
+
msgstr ""
|
1028 |
+
|
1029 |
+
#: admin/tpl/image_optimization.php:315
|
1030 |
+
msgid "Total"
|
1031 |
+
msgstr ""
|
1032 |
+
|
1033 |
+
#: admin/tpl/image_optimization.php:326
|
1034 |
+
msgid "Are you sure to remove all image bakcups?"
|
1035 |
+
msgstr ""
|
1036 |
+
|
1037 |
+
#: admin/tpl/image_optimization.php:327
|
1038 |
+
msgid "Remove Original Image Backups"
|
1039 |
+
msgstr ""
|
1040 |
+
|
1041 |
+
#: admin/tpl/image_optimization.php:330
|
1042 |
+
msgid "This will delete all of the backups of the original images."
|
1043 |
+
msgstr ""
|
1044 |
+
|
1045 |
+
#: admin/tpl/image_optimization.php:333
|
1046 |
+
msgid "This is irreversible."
|
1047 |
+
msgstr ""
|
1048 |
+
|
1049 |
+
#: admin/tpl/image_optimization.php:334
|
1050 |
+
msgid "You be unable to Revert Optimization once the backups are deleted!"
|
1051 |
+
msgstr ""
|
1052 |
+
|
1053 |
+
#: admin/tpl/image_optimization.php:340
|
1054 |
+
msgid "Last ran"
|
1055 |
+
msgstr ""
|
1056 |
+
|
1057 |
+
#: admin/tpl/image_optimization.php:346
|
1058 |
+
msgid "Saved"
|
1059 |
+
msgstr ""
|
1060 |
+
|
1061 |
#: admin/tpl/import_export.php:9
|
1062 |
msgid "LiteSpeed Cache Import / Export"
|
1063 |
msgstr ""
|
1101 |
msgid "Rate %s on %s"
|
1102 |
msgstr ""
|
1103 |
|
1104 |
+
#. #-#-#-#-# litespeed-cache.pot (LiteSpeed Cache 2.2.6) #-#-#-#-#
|
1105 |
#. Plugin Name of the plugin/theme
|
1106 |
#: admin/tpl/inc/admin_footer.php:6 inc/gui.class.php:348
|
1107 |
#: includes/litespeed-cache-gui.class.php:348
|
3814 |
msgid "LSCache"
|
3815 |
msgstr ""
|
3816 |
|
3817 |
+
#: inc/img_optm.class.php:84
|
3818 |
msgid "Failed to communicate with LiteSpeed IAPI server"
|
3819 |
msgstr ""
|
3820 |
|
3821 |
+
#: inc/img_optm.class.php:93
|
3822 |
msgid "Communicated with LiteSpeed Image Optimization Server successfully."
|
3823 |
msgstr ""
|
3824 |
|
3825 |
+
#: inc/img_optm.class.php:142 inc/img_optm.class.php:1239
|
3826 |
+
#: inc/img_optm.class.php:1304
|
3827 |
msgid "No image found."
|
3828 |
msgstr ""
|
3829 |
|
3830 |
+
#: inc/img_optm.class.php:170
|
3831 |
msgid "Number of images in one image group (%s) exceeds the credit (%s)"
|
3832 |
msgstr ""
|
3833 |
|
3834 |
+
#: inc/img_optm.class.php:198
|
3835 |
msgid "Requested successfully."
|
3836 |
msgstr ""
|
3837 |
|
3838 |
+
#: inc/img_optm.class.php:218
|
3839 |
msgid "Optimized successfully."
|
3840 |
msgstr ""
|
3841 |
|
3842 |
+
#: inc/img_optm.class.php:275
|
3843 |
msgid "Pushed %1$s to LiteSpeed optimization server, accepted %2$s."
|
3844 |
msgstr ""
|
3845 |
|
3846 |
+
#: inc/img_optm.class.php:627
|
3847 |
msgid "Failed to push to LiteSpeed IAPI server: %s"
|
3848 |
msgstr ""
|
3849 |
|
3850 |
+
#: inc/img_optm.class.php:635
|
3851 |
msgid "Failed to parse data from LiteSpeed IAPI server: %s"
|
3852 |
msgstr ""
|
3853 |
|
3854 |
+
#: inc/img_optm.class.php:1129
|
3855 |
msgid "Destroy unfinished data successfully."
|
3856 |
msgstr ""
|
3857 |
|
3858 |
+
#: inc/img_optm.class.php:1342
|
3859 |
msgid ""
|
3860 |
"Pushed %1$s groups with %2$s images to LiteSpeed optimization server, "
|
3861 |
"accepted %3$s groups with %4$s images."
|
3862 |
msgstr ""
|
3863 |
|
3864 |
+
#: inc/img_optm.class.php:1449
|
3865 |
+
msgid "Removed %1$s images and saved %2$s successfully."
|
3866 |
+
msgstr ""
|
3867 |
+
|
3868 |
+
#: inc/img_optm.class.php:1672
|
3869 |
msgid "Disabled WebP file successfully."
|
3870 |
msgstr ""
|
3871 |
|
3872 |
+
#: inc/img_optm.class.php:1678
|
3873 |
msgid "Enabled WebP file successfully."
|
3874 |
msgstr ""
|
3875 |
|
3876 |
+
#: inc/img_optm.class.php:1694
|
3877 |
msgid "Restored original file successfully."
|
3878 |
msgstr ""
|
3879 |
|
3880 |
+
#: inc/img_optm.class.php:1701
|
3881 |
msgid "Switched to optimized file successfully."
|
3882 |
msgstr ""
|
3883 |
|
3993 |
msgid "LiteSpeed Cache Custom Cron Crawler"
|
3994 |
msgstr ""
|
3995 |
|
3996 |
+
#: inc/utility.class.php:67 includes/litespeed-cache-utility.class.php:67
|
3997 |
+
msgid "just now"
|
3998 |
+
msgstr ""
|
3999 |
+
|
4000 |
+
#: inc/utility.class.php:67 includes/litespeed-cache-utility.class.php:67
|
4001 |
+
msgid "right now"
|
4002 |
+
msgstr ""
|
4003 |
+
|
4004 |
+
#: inc/utility.class.php:70 includes/litespeed-cache-utility.class.php:70
|
4005 |
msgid " %s ago"
|
4006 |
msgstr ""
|
4007 |
|
litespeed-cache.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* Plugin Name: LiteSpeed Cache
|
16 |
* Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
|
17 |
* Description: WordPress plugin to connect to LSCache on LiteSpeed Web Server.
|
18 |
-
* Version: 2.2.
|
19 |
* Author: LiteSpeed Technologies
|
20 |
* Author URI: https://www.litespeedtech.com
|
21 |
* License: GPLv3
|
15 |
* Plugin Name: LiteSpeed Cache
|
16 |
* Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
|
17 |
* Description: WordPress plugin to connect to LSCache on LiteSpeed Web Server.
|
18 |
+
* Version: 2.2.6
|
19 |
* Author: LiteSpeed Technologies
|
20 |
* Author URI: https://www.litespeedtech.com
|
21 |
* License: GPLv3
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: LiteSpeedTech
|
|
3 |
Tags: cache, wp-cache, litespeed, super cache, http2, total cache, optimize, object cache, redis, memcached, lazy load, database cleaner
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9.5
|
6 |
-
Stable tag: 2.2.
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
|
@@ -120,6 +120,16 @@ LSCWP supports WordPress Multisite and is compatible with most popular plugins,
|
|
120 |
|
121 |
The vast majority of plugins and themes are compatible with LSCache. [Our API](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:api) is available for those that are not.
|
122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
123 |
== Frequently Asked Questions ==
|
124 |
|
125 |
= How do the Cache features of LSCache work? =
|
@@ -256,6 +266,11 @@ Click on the `Advanced View` link at the top of the page, and several more tabs
|
|
256 |
|
257 |
== Changelog ==
|
258 |
|
|
|
|
|
|
|
|
|
|
|
259 |
= 2.2.5 - May 14 2018 =
|
260 |
* [IAPI] <strong>Image Optimization</strong> New Asian Image Optimization server (AS2).
|
261 |
* [INTEGRATION] Removed wpForo 3rd party file. (@massimod)
|
3 |
Tags: cache, wp-cache, litespeed, super cache, http2, total cache, optimize, object cache, redis, memcached, lazy load, database cleaner
|
4 |
Requires at least: 4.0
|
5 |
Tested up to: 4.9.5
|
6 |
+
Stable tag: 2.2.6
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl.html
|
9 |
|
120 |
|
121 |
The vast majority of plugins and themes are compatible with LSCache. [Our API](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:lscwp:api) is available for those that are not.
|
122 |
|
123 |
+
== Privacy ==
|
124 |
+
|
125 |
+
This plugin includes a Privacy blurb that you can add to your site's Privacy Policy via the WordPress Privacy settings.
|
126 |
+
|
127 |
+
**For your own information:** LiteSpeed Cache for WordPress potentially stores a duplicate copy of every web page on display on your site. The pages are stored locally on the system where LiteSpeed server software is installed and are not transferred to or accessed by LiteSpeed employees in any way, except as necessary in providing routine technical support if you request it. All cache files are temporary, and may easily be purged before their natural expiration, if necessary, via a Purge All command. It is up to individual site administrators to come up with their own cache expiration rules.
|
128 |
+
|
129 |
+
In addition to caching, our WordPress plugin has an Image Optimization feature. When optimization is requested, images are transmitted to a remote LiteSpeed server, processed, and then transmitted back for use on your site. LiteSpeed keeps copies of optimized images for 7 days (in case of network stability issues) and then permanently deletes them. Similarly, the WordPress plugin has a Reporting feature whereby a site owner can transmit an environment report to our server so that we may better provide technical support. Neither of these features collects any visitor data. Only server and site data is involved.
|
130 |
+
|
131 |
+
Please see [LiteSpeed’s Privacy Policy](https://www.litespeedtech.com/company/privacy-policy) for our complete Privacy/GDPR statement.
|
132 |
+
|
133 |
== Frequently Asked Questions ==
|
134 |
|
135 |
= How do the Cache features of LSCache work? =
|
266 |
|
267 |
== Changelog ==
|
268 |
|
269 |
+
= 2.2.6 - May 24 2018 =
|
270 |
+
* [NEW FEATURE] Original image backups can be removed now. (@borisov87 @JMCA2)
|
271 |
+
* [BUGFIX] Role Excludes in Tuning tab can save now. (@pako69)
|
272 |
+
* [UPDATE] Added privacy policy support.
|
273 |
+
|
274 |
= 2.2.5 - May 14 2018 =
|
275 |
* [IAPI] <strong>Image Optimization</strong> New Asian Image Optimization server (AS2).
|
276 |
* [INTEGRATION] Removed wpForo 3rd party file. (@massimod)
|