WordPress.org

Plugin Directory

Changeset 601975


Ignore:
Timestamp:
09/21/12 16:01:41 (19 months ago)
Author:
donncha
Message:

Set up the cached pages counter correctly, see http://wordpress.org/support/topic/plugin-wp-super-cache-confusing-information-in-cached-pages-since?replies=2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-super-cache/trunk/wp-cache.php

    r601283 r601975  
    12031203        <small><?php _e( '(may not always be accurate on busy sites)', 'wp-super-cache' ); ?></small> 
    12041204        </p><?php  
    1205     } else { 
    1206         $start_date = get_option( 'wpsupercache_start' ); 
    1207         if ( $start_date ) { 
    1208             update_option( 'wpsupercache_start', $start_date ); 
     1205    } elseif ( false == get_option( 'wpsupercache_start' ) ) { 
     1206            update_option( 'wpsupercache_start', time() ); 
    12091207            update_option( 'wpsupercache_count', 0 ); 
    12101208        } 
Note: See TracChangeset for help on using the changeset viewer.