| 1 |
<?php |
| 2 |
|
| 3 |
if ( ! defined( 'ABSPATH' ) ) { |
| 4 |
exit; |
| 5 |
} |
| 6 |
?> |
| 7 |
|
| 8 |
|
| 9 |
<h2><?php esc_attr_e( 'Local Preload', 'powered-cache' ); ?></h2> |
| 10 |
<table class="form-table"> |
| 11 |
|
| 12 |
<tbody> |
| 13 |
<tr> |
| 14 |
<th scope="row"><label for="powered_cache_preload_post_count"><?php _e( 'How many posts to preload', 'powered-cache' ); ?></label></th> |
| 15 |
<td> |
| 16 |
<label><input size="10" id="powered_cache_preload_post_count" type="text" value="<?php esc_attr_e( $this->get_option( 'post_count' ), 'powered-cache' ); ?>" name="preload[post_count]" /></label> |
| 17 |
</td> |
| 18 |
</tr> |
| 19 |
|
| 20 |
<tr> |
| 21 |
<th scope="row"><label for="powered_cache_preload_taxonomies"><?php _e( 'Category/Archive', 'powered-cache' ); ?></label></th> |
| 22 |
<td> |
| 23 |
<label><input type="checkbox" id="powered_cache_preload_taxonomies" name="preload[taxonomies]" <?php checked( $this->get_option( 'taxonomies' ), 1 ); ?> value="1" /><?php _e( 'Preload tags, categories and other taxonomies.', 'powered-cache' ); ?></label> |
| 24 |
</td> |
| 25 |
</tr> |
| 26 |
|
| 27 |
<tr> |
| 28 |
<th scope="row"><label for="powered_cache_preload_interval"><?php _e( 'Preload interval', 'powered-cache' ); ?></label></th> |
| 29 |
<td> |
| 30 |
<label><input size="4" id="powered_cache_preload_interval" type="text" value="<?php esc_attr_e( $this->get_option( 'interval' ), 'powered-cache' ); ?>" name="preload[interval]" /> <?php _e( 'minutes', 'powered-cache' ); ?></label> |
| 31 |
<br> |
| 32 |
<span class="description"><?php echo __( '0 to disable, recommended at least 30 mins', 'powered-cache' ); ?></span> |
| 33 |
</td> |
| 34 |
</tr> |
| 35 |
|
| 36 |
|
| 37 |
<tr> |
| 38 |
<th scope="row"><label for="powered_cache_clear_cache"><?php _e( 'Preload Now', 'powered-cache' ); ?></label></th> |
| 39 |
<td> |
| 40 |
<?php echo $this->preload_cache_button(); ?> |
| 41 |
<br> |
| 42 |
<span class="description"><?php _e( 'Manually start preload process', 'powered-cache' ); ?></span> |
| 43 |
</td> |
| 44 |
</tr> |
| 45 |
|
| 46 |
|
| 47 |
</tbody> |
| 48 |
</table> |
| 49 |
|