WordPress.org

Plugin Directory

Changeset 736158


Ignore:
Timestamp:
07/04/13 13:47:16 (10 months ago)
Author:
donncha
Message:
  • Return a buffer directly and maybe reduce memory usage.
  • Minor text changes
File:
1 edited

Legend:

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

    r706407 r736158  
    455455            if ( false == isset( $wp_super_cache_late_init ) || ( isset( $wp_super_cache_late_init ) && $wp_super_cache_late_init == 0 ) ) 
    456456                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 
     457            return do_cacheaction( 'wpsc_cachedata', $buffer ); // dynamic content for display 
    458458        } 
    459459 
     
    513513 
    514514    /* 
    515      * Dynamic content found: write the buffer to a file and then process any templates found using 
     515     * Dynamic content enabled: write the buffer to a file and then process any templates found using 
    516516     * the wpsc_cachedata filter. Buffer is then returned to the visitor. 
    517517     */ 
     
    523523        if ( $fr ) { // legacy caching 
    524524            if ( isset( $GLOBALS[ 'wp_super_cache_debug' ] ) && $GLOBALS[ 'wp_super_cache_debug' ] ) wp_cache_debug( "Writing dynamic buffer to legacy file." ); 
    525             wp_cache_add_to_buffer( $buffer, "Legacy Super Cache" ); 
     525            wp_cache_add_to_buffer( $buffer, "Dynamic Legacy Super Cache" ); 
    526526            fputs( $fr, $buffer ); 
    527527        } elseif ( isset( $fr2 ) ) { // supercache active 
Note: See TracChangeset for help on using the changeset viewer.