Support » Plugins and Hacks » Advanced Access Manager » [Resolved] Too much SQL queries

[Resolved] Too much SQL queries

  • Hello,

    this plugin is really heavy duty, as it allows you to customize access to nearly everything.

    However on our site we noticed too many SQL queries when rendering menus – as if the plugin was checking each menu item is accessible by the user. Since we only need to tweak the admin interface, we disabled the add_action('init', 'init_wpaccess'); hook if user is not currently using wp-admin.



Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Vasyltech


    Hi Martin,
    This might be ok if you are using AAM API. Otherwise disabling the init_wpaccess is equal to deactivating the AAM as Plugin.


    Hello Vasyl,

    this is a complex plugin, but it works well in wp-admin. So we ended up using both

    remove_action('set_current_user', 'aam_set_current_user');
    remove_action('init', 'init_wpaccess');

    if not in wp-admin. That way we have control over what users see in wp-admin, but the plugin is not causing any issues on front-end.

    We only do this outside of wp-admin, so it’s not the same as turning the plugin off. We disabled the aam_set_current_user hook as our users were loosing their custom capabilities in sidebar on front-end. I was not able to find the conflicting plugin.


    Hello Vasyl,
    i use your plugin on more sites.. mostly working fine..
    but on last project i see when i activate plugin there is a about 1000 – 1500 queries more than without plugin.. only one extrem i know about is that on this site we have a 150 categories..(( when i deactivate plugin site have a only 150 queries..

    what do you think about it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Too much SQL queries’ is closed to new replies.
Skip to toolbar