Support » Plugin: WP Super Cache » Minimal page templates aren't cached

  • I have a very simple and minimal page template called contentsonly.php.
    I use this template when I need contents only data (for instance, with wp-filebase, to generate an xml of audio files, that then I give to a flash player).

    This is the content of the template:

    <?php
    /*
    Template Name: Contents Only
    */
    
    add_filter( 'hybrid_entry_meta', 'nometa' );
    function nometa( $meta ) {
    	return '';
    }
    
    if ( have_posts() ) {
    	while ( have_posts() ) {
    		the_post();
    		//do_atomic( 'before_entry' ); // hybrid_before_entry
    		the_content();
    		do_atomic( 'after_entry' ); // hybrid_after_entry
    	}
    }
    ?>

    Pages built with this page template aren’t cached: what should I do to cache them?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Minimal page templates aren't cached’ is closed to new replies.