Edit File by line
/home/zeestwma/ajeebong.../wp-conte.../plugins/litespee.../tpl/cache
File: settings-cache.tpl.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* LiteSpeed Cache Control Settings
[2] Fix | Delete
*
[3] Fix | Delete
* @package LiteSpeed
[4] Fix | Delete
* @since 1.0.0
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
namespace LiteSpeed;
[8] Fix | Delete
[9] Fix | Delete
defined( 'WPINC' ) || exit;
[10] Fix | Delete
?>
[11] Fix | Delete
[12] Fix | Delete
<h3 class="litespeed-title-short">
[13] Fix | Delete
<?php esc_html_e( 'Cache Control Settings', 'litespeed-cache' ); ?>
[14] Fix | Delete
<?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/cache/' ); ?>
[15] Fix | Delete
</h3>
[16] Fix | Delete
[17] Fix | Delete
<table class="wp-list-table striped litespeed-table">
[18] Fix | Delete
<tbody>
[19] Fix | Delete
<tr>
[20] Fix | Delete
<th>
[21] Fix | Delete
<?php $option_id = Base::O_CACHE; ?>
[22] Fix | Delete
<?php $this->title( $option_id ); ?>
[23] Fix | Delete
</th>
[24] Fix | Delete
<td>
[25] Fix | Delete
<?php if ( $this->_is_multisite ) : ?>
[26] Fix | Delete
<?php $this->build_switch( $option_id, array( esc_html__( 'OFF', 'litespeed-cache' ), esc_html__( 'ON', 'litespeed-cache' ), esc_html__( 'Use Network Admin Setting', 'litespeed-cache' ) ) ); ?>
[27] Fix | Delete
<?php else : ?>
[28] Fix | Delete
<?php $this->build_switch( $option_id ); ?>
[29] Fix | Delete
<?php endif; ?>
[30] Fix | Delete
<div class="litespeed-desc">
[31] Fix | Delete
<?php
[32] Fix | Delete
printf(
[33] Fix | Delete
/* translators: %s: Link tags */
[34] Fix | Delete
esc_html__( 'Please visit the %sInformation%s page on how to test the cache.', 'litespeed-cache' ),
[35] Fix | Delete
'<a href="https://docs.litespeedtech.com/lscache/lscwp/installation/#testing" target="_blank" rel="noopener">',
[36] Fix | Delete
'</a>'
[37] Fix | Delete
);
[38] Fix | Delete
?>
[39] Fix | Delete
<br>
[40] Fix | Delete
<strong><?php esc_html_e( 'NOTICE', 'litespeed-cache' ); ?>: </strong><?php esc_html_e( 'When disabling the cache, all cached entries for this site will be purged.', 'litespeed-cache' ); ?>
[41] Fix | Delete
<br>
[42] Fix | Delete
<?php if ( $this->_is_multisite ) : ?>
[43] Fix | Delete
<?php esc_html_e( 'The network admin setting can be overridden here.', 'litespeed-cache' ); ?>
[44] Fix | Delete
<br>
[45] Fix | Delete
<?php endif; ?>
[46] Fix | Delete
<?php if ( ! $this->conf( Base::O_CACHE ) && $this->conf( Base::O_CDN_QUIC ) ) : ?>
[47] Fix | Delete
<span class="litespeed-success"><?php esc_html_e( 'With QUIC.cloud CDN enabled, you may still be seeing cache headers from your local server.', 'litespeed-cache' ); ?></span>
[48] Fix | Delete
<?php endif; ?>
[49] Fix | Delete
</div>
[50] Fix | Delete
</td>
[51] Fix | Delete
</tr>
[52] Fix | Delete
[53] Fix | Delete
<tr>
[54] Fix | Delete
<th>
[55] Fix | Delete
<?php $option_id = Base::O_CACHE_PRIV; ?>
[56] Fix | Delete
<?php $this->title( $option_id ); ?>
[57] Fix | Delete
</th>
[58] Fix | Delete
<td>
[59] Fix | Delete
<?php $this->build_switch( $option_id ); ?>
[60] Fix | Delete
<div class="litespeed-desc">
[61] Fix | Delete
<?php printf( esc_html__( 'Privately cache frontend pages for logged-in users. (LSWS %s required)', 'litespeed-cache' ), 'v5.2.1+' ); ?>
[62] Fix | Delete
</div>
[63] Fix | Delete
</td>
[64] Fix | Delete
</tr>
[65] Fix | Delete
[66] Fix | Delete
<tr>
[67] Fix | Delete
<th>
[68] Fix | Delete
<?php $option_id = Base::O_CACHE_COMMENTER; ?>
[69] Fix | Delete
<?php $this->title( $option_id ); ?>
[70] Fix | Delete
</th>
[71] Fix | Delete
<td>
[72] Fix | Delete
<?php $this->build_switch( $option_id ); ?>
[73] Fix | Delete
<div class="litespeed-desc">
[74] Fix | Delete
<?php printf( esc_html__( 'Privately cache commenters that have pending comments. Disabling this option will serve non-cacheable pages to commenters. (LSWS %s required)', 'litespeed-cache' ), 'v5.2.1+' ); ?>
[75] Fix | Delete
</div>
[76] Fix | Delete
</td>
[77] Fix | Delete
</tr>
[78] Fix | Delete
[79] Fix | Delete
<tr>
[80] Fix | Delete
<th>
[81] Fix | Delete
<?php $option_id = Base::O_CACHE_REST; ?>
[82] Fix | Delete
<?php $this->title( $option_id ); ?>
[83] Fix | Delete
</th>
[84] Fix | Delete
<td>
[85] Fix | Delete
<?php $this->build_switch( $option_id ); ?>
[86] Fix | Delete
<div class="litespeed-desc">
[87] Fix | Delete
<?php esc_html_e( 'Cache requests made by WordPress REST API calls.', 'litespeed-cache' ); ?>
[88] Fix | Delete
</div>
[89] Fix | Delete
</td>
[90] Fix | Delete
</tr>
[91] Fix | Delete
[92] Fix | Delete
<tr>
[93] Fix | Delete
<th>
[94] Fix | Delete
<?php $option_id = Base::O_CACHE_PAGE_LOGIN; ?>
[95] Fix | Delete
<?php $this->title( $option_id ); ?>
[96] Fix | Delete
</th>
[97] Fix | Delete
<td>
[98] Fix | Delete
<?php $this->build_switch( $option_id ); ?>
[99] Fix | Delete
<div class="litespeed-desc">
[100] Fix | Delete
<?php esc_html_e( 'Disabling this option may negatively affect performance.', 'litespeed-cache' ); ?>
[101] Fix | Delete
</div>
[102] Fix | Delete
</td>
[103] Fix | Delete
</tr>
[104] Fix | Delete
[105] Fix | Delete
<?php if ( ! $this->_is_multisite ) : ?>
[106] Fix | Delete
<?php require LSCWP_DIR . 'tpl/cache/settings_inc.cache_mobile.tpl.php'; ?>
[107] Fix | Delete
<?php endif; ?>
[108] Fix | Delete
[109] Fix | Delete
<tr>
[110] Fix | Delete
<th>
[111] Fix | Delete
<?php $option_id = Base::O_CACHE_PRIV_URI; ?>
[112] Fix | Delete
<?php $this->title( $option_id ); ?>
[113] Fix | Delete
</th>
[114] Fix | Delete
<td>
[115] Fix | Delete
<?php $this->build_textarea( $option_id ); ?>
[116] Fix | Delete
<div class="litespeed-desc">
[117] Fix | Delete
<?php esc_html_e( 'URI Paths containing these strings will NOT be cached as public.', 'litespeed-cache' ); ?>
[118] Fix | Delete
<?php $this->_uri_usage_example(); ?>
[119] Fix | Delete
</div>
[120] Fix | Delete
</td>
[121] Fix | Delete
</tr>
[122] Fix | Delete
[123] Fix | Delete
<tr>
[124] Fix | Delete
<th>
[125] Fix | Delete
<?php $option_id = Base::O_CACHE_FORCE_URI; ?>
[126] Fix | Delete
<?php $this->title( $option_id ); ?>
[127] Fix | Delete
</th>
[128] Fix | Delete
<td>
[129] Fix | Delete
<?php $this->build_textarea( $option_id ); ?>
[130] Fix | Delete
<div class="litespeed-desc">
[131] Fix | Delete
<?php esc_html_e( 'Paths containing these strings will be cached regardless of no-cacheable settings.', 'litespeed-cache' ); ?>
[132] Fix | Delete
<?php $this->_uri_usage_example(); ?>
[133] Fix | Delete
<br>
[134] Fix | Delete
<?php esc_html_e( 'To define a custom TTL for a URI, add a space followed by the TTL value to the end of the URI.', 'litespeed-cache' ); ?>
[135] Fix | Delete
<?php
[136] Fix | Delete
printf(
[137] Fix | Delete
esc_html__( 'For example, %1$s defines a TTL of %2$s seconds for %3$s.', 'litespeed-cache' ),
[138] Fix | Delete
'<code>/mypath/mypage 300</code>',
[139] Fix | Delete
300,
[140] Fix | Delete
'<code>/mypath/mypage</code>'
[141] Fix | Delete
);
[142] Fix | Delete
?>
[143] Fix | Delete
<?php Doc::one_per_line(); ?>
[144] Fix | Delete
</div>
[145] Fix | Delete
</td>
[146] Fix | Delete
</tr>
[147] Fix | Delete
[148] Fix | Delete
<tr>
[149] Fix | Delete
<th>
[150] Fix | Delete
<?php $option_id = Base::O_CACHE_FORCE_PUB_URI; ?>
[151] Fix | Delete
<?php $this->title( $option_id ); ?>
[152] Fix | Delete
</th>
[153] Fix | Delete
<td>
[154] Fix | Delete
<?php $this->build_textarea( $option_id ); ?>
[155] Fix | Delete
<div class="litespeed-desc">
[156] Fix | Delete
<?php esc_html_e( 'Paths containing these strings will be forced to public cached regardless of no-cacheable settings.', 'litespeed-cache' ); ?>
[157] Fix | Delete
<?php $this->_uri_usage_example(); ?>
[158] Fix | Delete
<br>
[159] Fix | Delete
<?php esc_html_e( 'To define a custom TTL for a URI, add a space followed by the TTL value to the end of the URI.', 'litespeed-cache' ); ?>
[160] Fix | Delete
<?php
[161] Fix | Delete
printf(
[162] Fix | Delete
esc_html__( 'For example, %1$s defines a TTL of %2$s seconds for %3$s.', 'litespeed-cache' ),
[163] Fix | Delete
'<code>/mypath/mypage 300</code>',
[164] Fix | Delete
300,
[165] Fix | Delete
'<code>/mypath/mypage</code>'
[166] Fix | Delete
);
[167] Fix | Delete
?>
[168] Fix | Delete
<?php Doc::one_per_line(); ?>
[169] Fix | Delete
</div>
[170] Fix | Delete
</td>
[171] Fix | Delete
</tr>
[172] Fix | Delete
[173] Fix | Delete
<?php if ( ! $this->_is_multisite ) : ?>
[174] Fix | Delete
<?php require LSCWP_DIR . 'tpl/cache/settings_inc.cache_dropquery.tpl.php'; ?>
[175] Fix | Delete
<?php endif; ?>
[176] Fix | Delete
[177] Fix | Delete
</tbody>
[178] Fix | Delete
</table>
[179] Fix | Delete
[180] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function