WordPress.org

Plugin Directory

Changeset 579023


Ignore:
Timestamp:
07/30/12 08:58:23 (21 months ago)
Author:
donncha
Message:

If wp_cache_gc job is NOT scheduled then we need to schedule a new one in the watcher job

File:
1 edited

Legend:

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

    r578009 r579023  
    12711271 
    12721272function wp_cache_gc_watcher() { 
    1273     if ( wp_next_scheduled( 'wp_cache_gc' ) ) 
     1273    if ( false == wp_next_scheduled( 'wp_cache_gc' ) ) { 
     1274        if ( isset( $GLOBALS[ 'wp_super_cache_debug' ] ) && $GLOBALS[ 'wp_super_cache_debug' ] ) wp_cache_debug( 'GC Watcher: scheduled new gc cron.', 5 ); 
    12741275        schedule_wp_gc(); 
     1276    } 
    12751277} 
    12761278 
Note: See TracChangeset for help on using the changeset viewer.