• I am trying to use REDIS caching outside of wordpress, and in my index.php, I’m basically wrapping the two PHP lines to start output buffering and end output buffering… however, it’s not working as expected.

    ob_start();
    
    define('WP_USE_THEMES', true);
    require( dirname( __FILE__ ) . '/wp-blog-header.php' );
    
    $buffer = ob_get_contents();
    ob_end_clean();

    $buffer only contains the HTML source BEFORE W3 total cache does its work… we want to be able to capture the source AFTER W3 total cache does its work. Any ideas?

    https://www.ads-software.com/plugins/w3-total-cache/

  • The topic ‘How do I get the final output buffer into my output buffer?’ is closed to new replies.