Tribe Community events is creating slow queries. Query monitor gives the following output:
Slow Database Queries (above 0.05s)
Query: “SELECT id from wp_3_posts
WHERE post_content LIKE ‘%[tribe_community_events]%’
AND post_type in (‘page’)”
Caller: /* From /wp-content/plugins/the-events-calendar-community-events/tribe-community-events/tribe-community-events.php:2655] */ TribeCommunityEvents->findPageByShortcode+
Time: 0.0591
The reason this happens on every pageload is that if [tribe_community_events] shortcode is not utilized on any page, the query “$id = $wpdb->get_var( $wpdb->prepare( “SELECT id from $wpdb->posts WHERE post_content LIKE ‘%%%s%%’ AND post_type in (‘page’)”, $shortcode ) );” in the function TribeCommunityEvents->findPageByShortcode() returns NULL which is not saved by set_transient and the transient cannot be found and get_transient( ‘tribe-community-events-page-id’ ); will always return false.
A-P