HamroKhanpin/hamrokhaanpaan/wp-content/plugins/litespeed-cache/tpl/cache/settings_inc.browser.tpl.php
2024-04-29 13:12:44 +05:45

48 lines
1.9 KiB
PHP

<?php
namespace LiteSpeed;
defined( 'WPINC' ) || exit;
?>
<h3 class="litespeed-title-short">
<?php echo __( 'Browser Cache Settings', 'litespeed-cache' ); ?>
<?php Doc::learn_more( 'https://docs.litespeedtech.com/lscache/lscwp/cache/#browser-tab' ); ?>
</h3>
<?php if ( LITESPEED_SERVER_TYPE === 'LITESPEED_SERVER_OLS' ) : ?>
<div class="litespeed-callout notice notice-warning inline">
<h4><?php echo __( 'NOTICE:', 'litespeed-cache' ); ?></h4>
<p><?php echo __( 'OpenLiteSpeed users please check this', 'litespeed-cache' ); ?>:
<?php Doc::learn_more( 'https://openlitespeed.org/kb/how-to-set-up-custom-headers/', __( 'Setting Up Custom Headers', 'litespeed-cache' ) ); ?></p>
</div>
<?php endif; ?>
<table class="wp-list-table striped litespeed-table"><tbody>
<tr>
<th>
<?php $id = Base::O_CACHE_BROWSER; ?>
<?php $this->title( $id ); ?>
</th>
<td>
<?php $this->build_switch( $id ); ?>
<div class="litespeed-desc">
<?php echo __( 'Browser caching stores static files locally in the user\'s browser. Turn on this setting to reduce repeated requests for static files.', 'litespeed-cache' ); ?>
<br /><?php Doc::notice_htaccess(); ?>
<br /><?php echo sprintf( __( 'You can turn on browser caching in server admin too. <a %s>Learn more about LiteSpeed browser cache settings</a>.', 'litespeed-cache' ), 'href="https://docs.litespeedtech.com/lscache/lscwp/cache/#how-to-set-it-up" target="_blank"' ); ?>
</div>
</td>
</tr>
<tr>
<th>
<?php $id = Base::O_CACHE_TTL_BROWSER; ?>
<?php $this->title( $id ); ?>
</th>
<td>
<?php $this->build_input( $id ); ?> <?php $this->readable_seconds(); ?>
<div class="litespeed-desc">
<?php echo __( 'The amount of time, in seconds, that files will be stored in browser cache before expiring.', 'litespeed-cache' ); ?>
<?php $this->recommended( $id ); ?>
<?php $this->_validate_ttl( $id, 30 ); ?>
</div>
</td>
</tr>
</tbody></table>