Query on homepage running but not needed
-
Hello,
I’ve been running the debug queries plugin to check a few things over on our site and I noticed that the events calendar plugin is querying the db (which is taking around 4s!) but I’m not actually running any events info such as a plugin on this page.
Why would the database need to be queried even thought there is no events calendar information needed on the homepage?
Below is an excerpt of the query being run…
SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.*, IF (wp_posts.post_type = 'tribe_events', wp_postmeta.meta_value, wp_posts.post_date) AS post_date FROM wp_posts INNER JOIN wp_term_relationships ON (wp_posts.ID = wp_term_relationships.object_id) LEFT JOIN wp_postmeta as wp_postmeta on wp_posts.ID = wp_postmeta.post_id AND wp_postmeta.meta_key = '_EventStartDate' WHERE 1=1 AND ( wp_term_relationships.term_taxonomy_id IN (289) ) AND wp_posts.post_type IN ('post', 'tribe_events', 'tribe_events') AND (wp_posts.post_status = 'publish' OR wp_posts.post_status = 'private') GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 0, 8
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Query on homepage running but not needed’ is closed to new replies.