Tag Info

New answers tagged


This should not break pagination: add_filter('pre_get_posts', 'optimized_get_posts', 100); function optimized_get_posts() { global $wp_query, $wpdb; $wp_query->query_vars['no_found_rows'] = 1; $wp_query->found_posts = $wpdb->get_var( "SELECT COUNT(*) FROM wp_posts WHERE 1=1 AND wp_posts.post_type = 'post' AND (wp_posts.post_status = ...


It also depends on plugins installed, etc. I'm working on a multi-site install right now which has 60+ plugins installed. On an Amazon EC2, m2-xlarge server, it's peaking at 25 PHP requests per second (load-tested with httperf, only hitting PHP urls, not images etc.) The CPUs are maxed out by the PHP-FPM process. There's lots of opportunity for ...

Top 50 recent answers are included