Plugin Directory

Changeset 1112970


Ignore:
Timestamp:
03/15/2015 08:05:45 AM (11 years ago)
Author:
mlazarov
Message:

A zero (or less) value means a cached page is valid forever

Location:
hyper-cache-extended/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • hyper-cache-extended/trunk/cache.php

    r1022567 r1112970  
    128128$hc_file_age = time() - $hc_file_time;
    129129
    130 if ($hc_file_age > ($hyper_cache['timeout']*60)){
     130if ($hyper_cache['timeout'] > 0 && $hc_file_age > ($hyper_cache['timeout']*60)){
    131131    if($server_load < $hyper_cache['load']) {
    132132        hyper_cache_start();
  • hyper-cache-extended/trunk/options.php

    r1022567 r1112970  
    185185        (<?php _e('minutes', 'hyper-cache'); ?>)
    186186        <br />
    187         <?php _e('Minutes a cached page is valid and served to users. A zero value means a cached page is valid forever.', 'hyper-cache');?>
     187        <?php _e('Minutes a cached page is valid and served to users. A zero (or less) value means a cached page is valid forever.', 'hyper-cache');?>
    188188        <?php _e('If a cached page is older than specified value (expired) it is no more used and will be regenerated on next request of it.', 'hyper-cache');?>
    189189        <?php _e('720 minutes is half a day, 1440 is a full day and so on.', 'hyper-cache'); ?>
  • hyper-cache-extended/trunk/plugin.php

    r1112961 r1112970  
    338338    global $hyper_cache;
    339339    $buffer = '';
    340     if ($options['timeout'] == 0) $options['timeout'] = 1440;
     340    //if ($options['timeout'] == 0) $options['timeout'] = 1440;
    341341
    342342    $cache_path = WP_CONTENT_DIR . '/cache/';
  • hyper-cache-extended/trunk/readme.txt

    r1112969 r1112970  
    8282* Disabling cleanup process when server is above max load average
    8383* Fixing wrong used reject config item
     84* A zero (or less) value means a cached page is valid forever
    8485
    8586= 1.2.0 =
Note: See TracChangeset for help on using the changeset viewer.