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