# learnpress/4.4.4/inc/admin/views/tools/html-cache.php

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.4. 32 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.4/code/inc/admin/views/tools/html-cache.php
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.4/raw/inc/admin/views/tools/html-cache.php
- Modified: 2026-08-03T03:26:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.4.4/code/inc/admin/views/tools/html-cache.php#L10-L20`.

```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>

```
