Hello,
I may open a new ticket as this seems to be a known issue – but I couldn’t find any solutions that are “new” – all the solutions I could find seem to be from 4-6 years ago and I’m hesitant to try them on 4.2.2.
But this, below, is what is causing the posts to load slowly. I also found that the admin slowness – 50-100 seconds to “add new page/post” is caused by another know issue – wp_enque_media problem. WP has several tickets open trying to solve that issue.
But if you have any ideas I’d love to hear them.
Here is the offender for the slow loading posts – it has to do with this call:
SELECT SQL_CALC_FOUND_ROWS wp_posts.ID
FROM wp_posts
INNER JOIN wp_term_relationships
ON (wp_posts.ID = wp_term_relationships.object_id)
WHERE 1=1
AND wp_posts.ID NOT IN (248393)
AND ( wp_term_relationships.term_taxonomy_id IN (17035,17036,17037,17038,17039,17040,17041,17042,17043,17044,17045,17046,17047,17048,17049,17050,17051,17052,17053,17054,17055,17056,17057,17058,17059,17060,17061,17062,17063,17064,17065,17066,17067,17095,17096,17097,17098,17099,17100,17101,17102,17103,17104,17105,17106,17107,17108,17109,17110,17111,17112,17113,17114,17115,17116,17117,17118,17142,17143,17144,17145,17146,17147,17148,17149,17150,17151,17152,17153,17154,17155,17156,17157,17158,17159,17160,17164,17165,17168,17169,17170,17171,17172,17173,17174,17175,17176,17177,17178,17179,17180,17181,17182,17183,17184,17185,17186,17187,17188,17189,21061,21062) )
AND wp_posts.post_type = 'post'
AND (wp_posts.post_status = 'publish'
OR wp_posts.post_status = 'private')
GROUP BY wp_posts.ID
ORDER BY wp_posts.post_date DESC
LIMIT 0, 6
Thank you for all your help and suggestions – it’s what allowed me to get this far!
Rob