Enormous amount of calls on dashboard
-
When there are many tickets the WP Dashboard (at a glance) will make tons of queries to load all the attendies.
Adding to this, when Pro is installed it doubled this amount.Stack trace:
WP_Post::get_instance() wp-includes/class-wp-post.php:243 get_post() wp-includes/post.php:1006 Tribe__Tickets__Tickets::get_attendees_from_modules() wp-content/plugins/event-tickets/src/Tribe/Tickets.php:1576 Tribe__Tickets__Tickets::get_attendees_by_args() wp-content/plugins/event-tickets/src/Tribe/Tickets.php:1470 TEC\T\A\Glance_Items->custom_glance_items_attendees() wp-content/plugins/event-tickets/src/Tickets/Admin/Glance_Items.php:32 apply_filters('dashboard_glance_items') wp-includes/plugin.php:205 wp_dashboard_right_now() wp-admin/includes/dashboard.php:362 do_meta_boxes() wp-admin/includes/template.php:1445 wp_dashboard() wp-admin/includes/dashboard.php:271
Query:
SELECT * FROM PREFIX_posts WHERE ID = ## LIMIT 1
And the same for Event Tickets Plus:
WP_Post::get_instance() wp-includes/class-wp-post.php:243 get_post() wp-includes/post.php:1006 Tribe__Tickets_Plus__Commerce__WooCommerce__Main->get_attendee() wp-content/plugins/event-tickets-plus/src/Tribe/Commerce/WooCommerce/Main.php:2411 Tribe__Tickets__Tickets::get_attendees_from_modules() wp-content/plugins/event-tickets/src/Tribe/Tickets.php:1569 Tribe__Tickets__Tickets::get_attendees_by_args() wp-content/plugins/event-tickets/src/Tribe/Tickets.php:1470 TEC\T\A\Glance_Items->custom_glance_items_attendees() wp-content/plugins/event-tickets/src/Tickets/Admin/Glance_Items.php:32 apply_filters('dashboard_glance_items') wp-includes/plugin.php:205 wp_dashboard_right_now() wp-admin/includes/dashboard.php:362 do_meta_boxes() wp-admin/includes/template.php:1445 wp_dashboard() wp-admin/includes/dashboard.php:271
Please address this as it’s quite a performance hit.
Cheers, Jory
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Enormous amount of calls on dashboard’ is closed to new replies.