PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.3.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.3.8
4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 4.2.1 All 138 releases
learnpress / inc / admin / views / tools / html-cache.php

html-cache.php in LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 4.3.8, at inc/admin/views/tools/html-cache.php

32 lines 1.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @author ThimPress
4 * @package LearnPress/Admin/Views
5 * @version 3.0.0
6 */
7
8 defined( 'ABSPATH' ) || die();
9 ?>
10
11 <div class="card">
12 <h2><?php _e( 'LearnPress hard cache', 'learnpress' ); ?></h2>
13 <p><?php _e( 'Hard cache is build-in tool of LearnPress for caching of static content such as course, lesson, quiz.', 'learnpress' ); ?></p>
14 <p><?php _e( 'When caching is enabled, the content will be cached when course is accessed in the first time.', 'learnpress' ); ?></p>
15 <p><?php _e( 'And it will not change in all later accesses until the cache is cleared.', 'learnpress' ); ?></p>
16 <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>
17
18 <label>
19 <input type="checkbox" name="enable_hard_cache"
20 value="1" <?php checked( LP_Settings::instance()->get( 'enable_hard_cache' ), 'yes' ); ?>>
21 <?php _e( 'Enable/Disable hard cache', 'learnpress' ); ?>
22 </label>
23 <p class="tools-button">
24 <a class="button" id="learn-press-clear-cache"
25 data-text="<?php esc_attr_e( 'Clear cache', 'learnpress' ); ?>"
26 data-cleaning-text="<?php esc_attr_e( 'Cleaning...', 'learnpress' ); ?>"
27 href="<?php echo wp_nonce_url( admin_url( 'index.php?page=lp-clear-cache' ), 'clear-cache' ); ?>">
28 <?php esc_html_e( 'Clear cache', 'learnpress' ); ?>
29 </a>
30 </p>
31 </div>
32