Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/litespee.../thirdpar...
File: woocommerce.content.tpl.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* LiteSpeed Cache – WooCommerce settings template.
[2] Fix | Delete
*
[3] Fix | Delete
* Renders the WooCommerce integration settings within the LiteSpeed Cache admin.
[4] Fix | Delete
*
[5] Fix | Delete
* @package LiteSpeed\Thirdparty
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
namespace LiteSpeed\Thirdparty;
[9] Fix | Delete
[10] Fix | Delete
defined( 'WPINC' ) || exit;
[11] Fix | Delete
[12] Fix | Delete
use LiteSpeed\Doc;
[13] Fix | Delete
?>
[14] Fix | Delete
<div data-litespeed-layout="woocommerce">
[15] Fix | Delete
[16] Fix | Delete
<h3 class="litespeed-title-short">
[17] Fix | Delete
<?php esc_html_e( 'WooCommerce Settings', 'litespeed-cache' ); ?>
[18] Fix | Delete
<?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/cache/#woocommerce-tab' ); ?>
[19] Fix | Delete
</h3>
[20] Fix | Delete
[21] Fix | Delete
<div class="litespeed-callout notice notice-warning inline">
[22] Fix | Delete
<h4><?php esc_html_e( 'NOTICE:', 'litespeed-cache' ); ?></h4>
[23] Fix | Delete
<p><?php esc_html_e( 'After verifying that the cache works in general, please test the cart.', 'litespeed-cache' ); ?></p>
[24] Fix | Delete
<p>
[25] Fix | Delete
<?php
[26] Fix | Delete
printf(
[27] Fix | Delete
/* translators: %s: link attributes */
[28] Fix | Delete
esc_html__( 'To test the cart, visit the %sFAQ%s.', 'litespeed-cache' ),
[29] Fix | Delete
'<a href="https://docs.litespeedtech.com/lscache/lscwp/installation/#non-cacheable-pages" target="_blank">',
[30] Fix | Delete
'</a>'
[31] Fix | Delete
);
[32] Fix | Delete
?>
[33] Fix | Delete
</p>
[34] Fix | Delete
<p><?php esc_html_e( 'By default, the My Account, Checkout, and Cart pages are automatically excluded from caching. Misconfiguration of page associations in WooCommerce settings may cause some pages to be erroneously excluded.', 'litespeed-cache' ); ?></p>
[35] Fix | Delete
</div>
[36] Fix | Delete
[37] Fix | Delete
<table class="wp-list-table striped litespeed-table">
[38] Fix | Delete
<tbody>
[39] Fix | Delete
<tr>
[40] Fix | Delete
<th>
[41] Fix | Delete
<?php $setting_id = self::O_UPDATE_INTERVAL; ?>
[42] Fix | Delete
<?php esc_html_e( 'Product Update Interval', 'litespeed-cache' ); ?>
[43] Fix | Delete
</th>
[44] Fix | Delete
<td>
[45] Fix | Delete
<?php
[46] Fix | Delete
$options = [
[47] Fix | Delete
self::O_PQS_CS => esc_html__( 'Purge product on changes to the quantity or stock status.', 'litespeed-cache' ) . ' ' . esc_html__( 'Purge categories only when stock status changes.', 'litespeed-cache' ),
[48] Fix | Delete
self::O_PS_CS => esc_html__( 'Purge product and categories only when the stock status changes.', 'litespeed-cache' ),
[49] Fix | Delete
self::O_PS_CN => esc_html__( 'Purge product only when the stock status changes.', 'litespeed-cache' ) . ' ' . esc_html__( 'Do not purge categories on changes to the quantity or stock status.', 'litespeed-cache' ),
[50] Fix | Delete
self::O_PQS_CQS => esc_html__( 'Always purge both product and categories on changes to the quantity or stock status.', 'litespeed-cache' ),
[51] Fix | Delete
];
[52] Fix | Delete
$conf = (int) apply_filters( 'litespeed_conf', $setting_id );
[53] Fix | Delete
do_action( 'litespeed_setting_enroll', $setting_id );
[54] Fix | Delete
foreach ( $options as $k => $v ) :
[55] Fix | Delete
$input_id = 'conf_' . $setting_id . '_' . $k;
[56] Fix | Delete
?>
[57] Fix | Delete
<div class="litespeed-radio-row">
[58] Fix | Delete
<input
[59] Fix | Delete
type="radio"
[60] Fix | Delete
autocomplete="off"
[61] Fix | Delete
name="<?php echo esc_attr( (string) $setting_id ); ?>"
[62] Fix | Delete
id="<?php echo esc_attr( $input_id ); ?>"
[63] Fix | Delete
value="<?php echo esc_attr( (string) $k ); ?>"
[64] Fix | Delete
<?php echo checked( $conf, (int) $k, false ); ?>
[65] Fix | Delete
/>
[66] Fix | Delete
<label for="<?php echo esc_attr( $input_id ); ?>"><?php echo esc_html( $v ); ?></label>
[67] Fix | Delete
</div>
[68] Fix | Delete
<?php endforeach; ?>
[69] Fix | Delete
<div class="litespeed-desc">
[70] Fix | Delete
<?php esc_html_e( 'Determines how changes in product quantity and product stock status affect product pages and their associated category pages.', 'litespeed-cache' ); ?>
[71] Fix | Delete
</div>
[72] Fix | Delete
</td>
[73] Fix | Delete
</tr>
[74] Fix | Delete
[75] Fix | Delete
<tr>
[76] Fix | Delete
<th>
[77] Fix | Delete
<?php $setting_id = self::O_CART_VARY; ?>
[78] Fix | Delete
<?php esc_html_e( 'Vary for Mini Cart', 'litespeed-cache' ); ?>
[79] Fix | Delete
</th>
[80] Fix | Delete
<td>
[81] Fix | Delete
<?php
[82] Fix | Delete
$conf = (int) apply_filters( 'litespeed_conf', $setting_id );
[83] Fix | Delete
$this->cls( 'Admin_Display' )->build_switch( $setting_id );
[84] Fix | Delete
?>
[85] Fix | Delete
<div class="litespeed-desc">
[86] Fix | Delete
<?php esc_html_e( 'Generate a separate vary cache copy for the mini cart when the cart is not empty.', 'litespeed-cache' ); ?>
[87] Fix | Delete
<?php esc_html_e( 'If your theme does not use JS to update the mini cart, you must enable this option to display the correct cart contents.', 'litespeed-cache' ); ?>
[88] Fix | Delete
<br /><?php Doc::notice_htaccess(); ?>
[89] Fix | Delete
</div>
[90] Fix | Delete
</td>
[91] Fix | Delete
</tr>
[92] Fix | Delete
[93] Fix | Delete
</tbody>
[94] Fix | Delete
</table>
[95] Fix | Delete
</div>
[96] Fix | Delete
[97] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function