Edit File by line
/home/zeestwma/ajeebong.../wp-conte.../plugins/litespee.../tpl/cache
File: settings-excludes.tpl.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* LiteSpeed Cache Exclude 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 echo esc_html__( 'Exclude Settings', 'litespeed-cache' ); ?>
[14] Fix | Delete
<?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/cache/#excludes-tab' ); ?>
[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
[20] Fix | Delete
<tr>
[21] Fix | Delete
<th>
[22] Fix | Delete
<?php $option_id = Base::O_CACHE_EXC; ?>
[23] Fix | Delete
<?php $this->title( $option_id ); ?>
[24] Fix | Delete
</th>
[25] Fix | Delete
<td>
[26] Fix | Delete
<?php $this->build_textarea( $option_id ); ?>
[27] Fix | Delete
<div class="litespeed-desc">
[28] Fix | Delete
<?php echo esc_html__( 'Paths containing these strings will not be cached.', 'litespeed-cache' ); ?>
[29] Fix | Delete
<?php $this->_uri_usage_example(); ?>
[30] Fix | Delete
<br><?php echo esc_html__( 'Predefined list will also be combined w/ the above settings', 'litespeed-cache' ); ?>: <a href="https://github.com/litespeedtech/lscache_wp/blob/dev/data/cache_nocacheable.txt" target="_blank">https://github.com/litespeedtech/lscache_wp/blob/dev/data/cache_nocacheable.txt</a>
[31] Fix | Delete
</div>
[32] Fix | Delete
</td>
[33] Fix | Delete
</tr>
[34] Fix | Delete
[35] Fix | Delete
<tr>
[36] Fix | Delete
<th>
[37] Fix | Delete
<?php $option_id = Base::O_CACHE_EXC_QS; ?>
[38] Fix | Delete
<?php $this->title( $option_id ); ?>
[39] Fix | Delete
</th>
[40] Fix | Delete
<td>
[41] Fix | Delete
<?php $this->build_textarea( $option_id ); ?>
[42] Fix | Delete
<div class="litespeed-desc">
[43] Fix | Delete
<?php echo esc_html__( 'Query strings containing these parameters will not be cached.', 'litespeed-cache' ); ?>
[44] Fix | Delete
<?php printf( esc_html__( 'For example, for %1$s, %2$s and %3$s can be used here.', 'litespeed-cache' ), '<code>?aa=bb&cc=dd</code>', '<code>aa</code>', '<code>cc</code>' ); ?>
[45] Fix | Delete
<?php Doc::one_per_line(); ?>
[46] Fix | Delete
</div>
[47] Fix | Delete
</td>
[48] Fix | Delete
</tr>
[49] Fix | Delete
[50] Fix | Delete
<tr>
[51] Fix | Delete
<th>
[52] Fix | Delete
<?php $option_id = Base::O_CACHE_EXC_CAT; ?>
[53] Fix | Delete
<?php $this->title( $option_id ); ?>
[54] Fix | Delete
</th>
[55] Fix | Delete
<td>
[56] Fix | Delete
<?php
[57] Fix | Delete
$excludes_buf = '';
[58] Fix | Delete
if ( $this->conf( $option_id ) ) {
[59] Fix | Delete
$excludes_buf = implode( "\n", array_map( 'get_cat_name', $this->conf( $option_id ) ) );
[60] Fix | Delete
}
[61] Fix | Delete
$this->build_textarea( $option_id, false, $excludes_buf );
[62] Fix | Delete
?>
[63] Fix | Delete
<div class="litespeed-desc">
[64] Fix | Delete
<b><?php echo esc_html__( 'All categories are cached by default.', 'litespeed-cache' ); ?></b>
[65] Fix | Delete
<?php printf( esc_html__( 'To prevent %s from being cached, enter them here.', 'litespeed-cache' ), esc_html__( 'categories', 'litespeed-cache' ) ); ?>
[66] Fix | Delete
<?php Doc::one_per_line(); ?>
[67] Fix | Delete
</div>
[68] Fix | Delete
<div class="litespeed-callout notice notice-warning inline">
[69] Fix | Delete
<h4><?php echo esc_html__( 'NOTE', 'litespeed-cache' ); ?>:</h4>
[70] Fix | Delete
<ol>
[71] Fix | Delete
<li><?php echo esc_html__( 'If the category name is not found, the category will be removed from the list on save.', 'litespeed-cache' ); ?></li>
[72] Fix | Delete
</ol>
[73] Fix | Delete
</div>
[74] Fix | Delete
</td>
[75] Fix | Delete
</tr>
[76] Fix | Delete
[77] Fix | Delete
<tr>
[78] Fix | Delete
<th>
[79] Fix | Delete
<?php $option_id = Base::O_CACHE_EXC_TAG; ?>
[80] Fix | Delete
<?php $this->title( $option_id ); ?>
[81] Fix | Delete
</th>
[82] Fix | Delete
<td>
[83] Fix | Delete
<?php
[84] Fix | Delete
$excludes_buf = '';
[85] Fix | Delete
if ( $this->conf( $option_id ) ) {
[86] Fix | Delete
$tag_names = array();
[87] Fix | Delete
foreach ( array_map( 'get_tag', $this->conf( $option_id ) ) as $curr_tag ) {
[88] Fix | Delete
$tag_names[] = $curr_tag->name;
[89] Fix | Delete
}
[90] Fix | Delete
if ( ! empty( $tag_names ) ) {
[91] Fix | Delete
$excludes_buf = implode( "\n", $tag_names );
[92] Fix | Delete
}
[93] Fix | Delete
}
[94] Fix | Delete
$this->build_textarea( $option_id, false, $excludes_buf );
[95] Fix | Delete
?>
[96] Fix | Delete
<div class="litespeed-desc">
[97] Fix | Delete
<b><?php echo esc_html__( 'All tags are cached by default.', 'litespeed-cache' ); ?></b>
[98] Fix | Delete
<?php printf( esc_html__( 'To prevent %s from being cached, enter them here.', 'litespeed-cache' ), esc_html__( 'tags', 'litespeed-cache' ) ); ?>
[99] Fix | Delete
<?php Doc::one_per_line(); ?>
[100] Fix | Delete
</div>
[101] Fix | Delete
<div class="litespeed-callout notice notice-warning inline">
[102] Fix | Delete
<h4><?php echo esc_html__( 'NOTE', 'litespeed-cache' ); ?>:</h4>
[103] Fix | Delete
<ol>
[104] Fix | Delete
<li><?php echo esc_html__( 'If the tag slug is not found, the tag will be removed from the list on save.', 'litespeed-cache' ); ?></li>
[105] Fix | Delete
<li>
[106] Fix | Delete
<?php
[107] Fix | Delete
printf(
[108] Fix | Delete
esc_html__( 'To exclude %1$s, insert %2$s.', 'litespeed-cache' ),
[109] Fix | Delete
'<code>http://www.example.com/tag/category/tag-slug/</code>',
[110] Fix | Delete
'<code>tag-slug</code>'
[111] Fix | Delete
);
[112] Fix | Delete
?>
[113] Fix | Delete
</li>
[114] Fix | Delete
</ol>
[115] Fix | Delete
</div>
[116] Fix | Delete
</td>
[117] Fix | Delete
</tr>
[118] Fix | Delete
[119] Fix | Delete
<?php
[120] Fix | Delete
if ( ! $this->_is_multisite ) :
[121] Fix | Delete
require LSCWP_DIR . 'tpl/cache/settings_inc.exclude_cookies.tpl.php';
[122] Fix | Delete
require LSCWP_DIR . 'tpl/cache/settings_inc.exclude_useragent.tpl.php';
[123] Fix | Delete
endif;
[124] Fix | Delete
?>
[125] Fix | Delete
[126] Fix | Delete
<tr>
[127] Fix | Delete
<th>
[128] Fix | Delete
<?php $option_id = Base::O_CACHE_EXC_ROLES; ?>
[129] Fix | Delete
<?php $this->title( $option_id ); ?>
[130] Fix | Delete
</th>
[131] Fix | Delete
<td>
[132] Fix | Delete
<div class="litespeed-desc">
[133] Fix | Delete
<?php echo esc_html__( 'Selected roles will be excluded from cache.', 'litespeed-cache' ); ?>
[134] Fix | Delete
</div>
[135] Fix | Delete
<div class="litespeed-tick-list">
[136] Fix | Delete
<?php foreach ( $roles as $curr_role => $curr_title ) : ?>
[137] Fix | Delete
<?php $this->build_checkbox( $option_id . '[]', esc_html( $curr_title ), Control::cls()->in_cache_exc_roles( $curr_role ), $curr_role ); ?>
[138] Fix | Delete
<?php endforeach; ?>
[139] Fix | Delete
</div>
[140] Fix | Delete
</td>
[141] Fix | Delete
</tr>
[142] Fix | Delete
[143] Fix | Delete
</tbody>
[144] Fix | Delete
</table>
[145] Fix | Delete
[146] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function