Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Should i use in my queries wp transient like this -

    <?php 
 if ( ! $my_paged = absint( get_query_var( 'paged' ) ) )
 $my_paged = 1;

 if ( ! $my_query = get_transient( "567recent_$my_paged" ) ) {
$my_query = new WP_Query ( "cat=2526&posts_per_page=1&paged=$my_paged" );
  set_transient( "567recent_$my_paged", $my_query, 60 * 60 );
 }
 while ($my_query->have_posts()) : $my_query->the_post(); ?>    

If is use w3-total-cache where database caching with apc enabled ?

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.