WordPress.org

Plugin Directory

Changeset 706407


Ignore:
Timestamp:
05/01/13 12:19:23 (12 months ago)
Author:
donncha
Message:

Make sure we process the wpsc_cachedata cache action even when the page isn't being cached for known users.

File:
1 edited

Legend:

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

    r704188 r706407  
    451451        wp_cache_writers_exit(); 
    452452        wp_cache_add_to_buffer( $buffer, "Page not cached by WP Super Cache. Check your settings page. $cache_error" ); 
    453             return $buffer; 
     453        if ( $wp_cache_mfunc_enabled == 1 ) { 
     454            global $wp_super_cache_late_init; 
     455            if ( false == isset( $wp_super_cache_late_init ) || ( isset( $wp_super_cache_late_init ) && $wp_super_cache_late_init == 0 ) ) 
     456                wp_cache_add_to_buffer( $buffer, 'Super Cache dynamic page detected but $wp_super_cache_late_init not set. See the readme.txt for further details.' ); 
     457            $buffer = do_cacheaction( 'wpsc_cachedata', $buffer ); // dynamic content for display 
     458        } 
     459 
     460        return $buffer; 
    454461    } 
    455462 
Note: See TracChangeset for help on using the changeset viewer.