C:\xampp\htdocs\landing\wp-content\plugins\wp-optimize\templates\cache\page-cache-preload.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php if (!defined('WPO_VERSION')) die('No direct access allowed'); ?>

<h3 class="wpo-first-child"><?php _e('Preload now''wp-optimize'); ?></h3>

<div class="wpo-fieldgroup">
    <p>
        <input id="wp_optimize_run_cache_preload" class="button button-primary" type="submit" name="wp_optimize_run_cache_preload" value="<?php echo $is_running esc_attr__('Cancel''wp-optimize') : esc_attr__('Run now''wp-optimize'); ?><?php echo $is_running 'data-running="1"' ''?>>
        <span id="wp_optimize_preload_cache_status"><?php
            
echo htmlspecialchars($status_message);
        
?></span>
    </p>
    <span>
        <?php _e('This action will trigger WP-Optimize to cache the site by visiting pages to preload them (so that they are ready the first time a human visitor wants them).''wp-optimize'); ?>
        <?php _e('If a sitemap is available, then it will be used to determine which content gets cached.''wp-optimize'); ?>
    </span>
</div>

<h3 class="wpo-first-child"><?php _e('Schedule preloader''wp-optimize'); ?></h3>

<div class="wpo-fieldgroup">
    <p>
        <label>
            <input name="enable_schedule_preload" id="enable_schedule_preload" class="cache-settings" type="checkbox" value="true" <?php checked($wpo_cache_options['enable_schedule_preload']); ?>>
            <?php _e('Activate scheduled cache preloading''wp-optimize'); ?>
        </label>
        <p>
            <?php _e('The scheduled preloading will run automatically in your chosen time period.''wp-optimize'); ?>
        </p>
    </p>

    <label for="preload_schedule_type"><?php _e('Select schedule type''wp-optimize'); ?></label><br>

    <select id="preload_schedule_type" class="cache-settings" name="preload_schedule_type" disabled>

        <?php

        
foreach ($schedule_options as $opt_id => $opt_description) {
            
?>
            <option value="<?php echo esc_attr($opt_id); ?><?php selected($wpo_cache_options['preload_schedule_type'], $opt_id); ?> <?php if ('wpo_use_cache_lifespan' == $opt_id && $wpo_cache_options['page_cache_length_value'] <= 0disabled(true); ?>><?php echo htmlspecialchars($opt_description); ?></option>
            <?php
        
}

        
?>

    </select>

</div>

<input id="wp-optimize-save-cache-preload-settings" class="button button-primary" type="submit" name="wp-optimize-save-cache-preload-settings" value="<?php _e('Save changes''wp-optimize');?>">

<img class="wpo_spinner" src="<?php echo esc_attr(admin_url('images/spinner-2x.gif')); ?>" alt="...">

<span class="save-done dashicons dashicons-yes display-none"></span>
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586