• Resolved Metal_13

    (@metal_13)


    the plugin adds 10 queries on every page even when it’s not needed. is there a way to enable them only in the form page?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @metal_13,

    Can you please explain a little more on this issue? Is it possible to share some steps on how to reproduce the issue from our end?

    regards,

    Thread Starter Metal_13

    (@metal_13)

    I got this from Query Monitor. 10 queries on every page. i don’t use any features from the plugin except the post form and user form page

    9	SELECT option_value
    FROM wp_options
    WHERE option_name = 'wpuf_license_status'
    LIMIT 1	
    
        get_option()
    
    	Plugin: wp-user-frontend	0	0.0001
    10	SELECT *
    FROM wp_users
    WHERE user_login = 'admin'
    LIMIT 1	
    
        WP_User::get_data_by()
    
    	Plugin: wp-user-frontend	1	0.0000
    11	SELECT user_id, meta_key, meta_value
    FROM wp_usermeta
    WHERE user_id IN (1)
    ORDER BY umeta_id ASC	
    
        update_meta_cache()
    
    	Plugin: wp-user-frontend	252	0.0001
    12	SELECT option_value
    FROM wp_options
    WHERE option_name = 'logged_in_key'
    LIMIT 1	
    
        get_option()
    
    	Plugin: wp-user-frontend	1	0.0000
    13	SELECT option_value
    FROM wp_options
    WHERE option_name = 'logged_in_salt'
    LIMIT 1	
    
        get_option()
    
    	Plugin: wp-user-frontend	1	0.0000
    14	SELECT t.*, tt.*
    FROM wp_terms AS t
    INNER JOIN wp_term_taxonomy AS tt
    ON t.term_id = tt.term_id
    WHERE tt.taxonomy IN ('category')
    ORDER BY t.name ASC	
    
        WP_Term_Query->get_terms()
    
    	Plugin: wp-user-frontend	13	0.0001
    15	SELECT term_id, meta_key, meta_value
    FROM wp_termmeta
    WHERE term_id IN (942,1124,318,1,6682,6686,974,5793,7,234,563,6690,6689)
    ORDER BY meta_id ASC	
    
        update_meta_cache()
    
    	Plugin: wp-user-frontend	1	0.0000
    16	SELECT t.*, tt.*
    FROM wp_terms AS t
    INNER JOIN wp_term_taxonomy AS tt
    ON t.term_id = tt.term_id
    WHERE tt.taxonomy IN ('post_tag')
    ORDER BY t.name ASC	
    
        WP_Term_Query->get_terms()
    
    	Plugin: wp-user-frontend	8309	0.0018
    17	SELECT term_id, meta_key, meta_value
    FROM wp_termmeta
    WHERE term_id IN (------LOOOOONG ARRAY OF IDS------)
    ORDER BY meta_id ASC	
    
        update_meta_cache()
    
    	Plugin: wp-user-frontend	1948	0.0005
    33	SELECT *
    FROM wp_posts
    WHERE ID = 194377
    LIMIT 1	
    
        WP_Post::get_instance()
    
    	Plugin: wp-user-frontend	1	0.0001
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Too many unnecessary queries’ is closed to new replies.