WordPress-Mehrfachschleifen auf Heimoptimierung

Ich betreibe eine News-Website basierend auf WordPress mit verschiedenen Plug-ins, inklusive W3C Total Cache auf meinem VPS (Nginx + PHP-FPM) Server.

Der Code unserer home.php ist:

  4, 'category__not_in' => array(1), 'post__in' => get_option( 'sticky_posts' ), // display 4 sticky posts on slider 'ignore_sticky_posts' => 1, 'orderby' => 'date', 'order' => 'DESC', 'no_found_rows' => true, 'post_status' => 'publish', 'post_type'=>'post', 'cache_results' => false, 'update_post_term_cache' => false, 'update_post_meta_cache' => false ); $slider = new WP_Query($args_slider); $i=0; if ($slider->have_posts()) : while ($slider->have_posts()) : $slider->the_post(); $i++; $current_remembered_duplicated[] = get_the_ID(); ?>     3, // display 3 most viewed base on last 7 days 'meta_key' => 'post_views_count', 'orderby' => 'meta_value_num', 'caller_get_posts'=>0, 'ignore_sticky_posts' => 1, 'category__not_in' => array(1), 'pages' => 0, 'post_type'=> 'post', 'no_found_rows' => true, 'post_status' => 'publish', 'cache_results' => false, 'update_post_term_cache' => false, 'update_post_meta_cache' => false ); $query_most_viewed = new WP_Query($args_most_viewed); if ($query_most_viewed->have_posts()) : $row_count=0; while ($query_most_viewed->have_posts()) : $row_count++; $query_most_viewed->the_post(); ?>       $paged, // on first page, if next page - Infinite Scroll click on "Load more" button 'orderby' => 'date', 'order' => 'DESC', 'ignore_sticky_posts' => 1, 'category__not_in' => array(1), 'posts_per_page' => 12, // display 12 posts per page if paged 'post__not_in' => $current_remembered_duplicated, 'post_status' => 'publish', 'post_type'=>'post', 'cache_results' => false, 'update_post_term_cache' => false, 'update_post_meta_cache' => false ); $query_main_loop = new WP_Query($args_main_loop); if ($query_main_loop->have_posts()) : $row_count=0; while ($query_main_loop->have_posts()) : $row_count++; ?>   <?php if( $paged   3, // new query, different post category and setup, display 3 posts 'orderby' => 'date', 'order' => 'DESC', 'ignore_sticky_posts' => 1, 'cat' => 28, 'category__not_in' => array(1), 'no_found_rows' => true, 'post_type'=>'post', 'post_status' => 'publish', 'cache_results' => false, 'update_post_term_cache' => false, 'update_post_meta_cache' => false); $custom_query = new wp_query($args_custom_query); if ($custom_query->have_posts()) : while ($custom_query->have_posts()) : $custom_query->the_post(); ?>     <?php if( $paged  the_post(); // continue 12 posts from main loop ?>      

MEINE FRAGE:

Kann ich diesen Code besser für bessere performance optimieren? Trotzdem haben wir über Tag ~ 11k genug Verkehr.

Wir entwickeln und suchen nach dem bestmöglichen Wert für ein angepasstes Hosting.

Jede Hilfe oder Information wäre willkommen!

Vielen Dank für das Teilen!

Solutions Collecting From Web of "WordPress-Mehrfachschleifen auf Heimoptimierung"