[Plugin: Groups] Groups making thousands of queries per page view
-
The Groups plugin makes over 1,000 queries per page view. In fact, it makes one db query for every “page” post type in the wp_posts table, on every page view. We have over 1,000 pages on our site.
This happens immediately after the theme calls get_pages() and before the theme calls get_options(). The query text is:
SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE post_id IN (8181) ORDER BY meta_id ASC
The stack trace is:
update_meta_cache()-
get_metadata()
get_post_meta()
Groups_Post_Access::get_read_post_capabilities()
Groups_Post_Access::user_can_read_post()
Groups_Post_Access::get_pages()
apply_filters(‘get_pages’)
get_pages()
of_options()
do_action(‘init’)Unfortunately the plugin author thus far has not been willing to offer any guidance on how to remedy this. He’s been quite silent, in fact. That means that we’ve had to stop adding pages because every time we do, the Groups plugin makes our site slower.
@itthinx Please offer any details or plans you have to fix this bug.
Does anybody have a work around they’ve been successful with?
- The topic ‘[Plugin: Groups] Groups making thousands of queries per page view’ is closed to new replies.