Current File : /home/escuelai/public_html/wp-content/plugins/learnpress/inc/admin/views/tools/html-cache.php |
<?php
/**
* @author ThimPress
* @package LearnPress/Admin/Views
* @version 3.0.0
*/
defined( 'ABSPATH' ) || die();
?>
<div class="card">
<h2><?php _e( 'LearnPress hard cache', 'learnpress' ); ?></h2>
<p><?php _e( 'Hard cache is build-in tool of LearnPress for caching of static content such as course, lesson, quiz.', 'learnpress' ); ?></p>
<p><?php _e( 'When caching is enabled, the content will be cached when course is accessed in the first time.', 'learnpress' ); ?></p>
<p><?php _e( 'And it will not change in all later accesses until the cache is cleared.', 'learnpress' ); ?></p>
<p><?php _e( 'If the content is not changed after updating course, click the button below to flush the cache and apply changes.', 'learnpress' ); ?></p>
<label>
<input type="checkbox" name="enable_hard_cache"
value="1" <?php checked( LP_Settings::instance()->get( 'enable_hard_cache' ), 'yes' ); ?>>
<?php _e( 'Enable/Disable hard cache', 'learnpress' ); ?>
</label>
<p class="tools-button">
<a class="button" id="learn-press-clear-cache"
data-text="<?php esc_attr_e( 'Clear cache', 'learnpress' ); ?>"
data-cleaning-text="<?php esc_attr_e( 'Cleaning...', 'learnpress' ); ?>"
href="<?php echo wp_nonce_url( admin_url( 'index.php?page=lp-clear-cache' ), 'clear-cache' ); ?>">
<?php esc_html_e( 'Clear cache', 'learnpress' ); ?>
</a>
</p>
</div>