Advanced Access Manager
[resolved] Too much SQL queries (4 posts)

  1. FolioVision
    Posted 3 years ago #


    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.



  2. Vasyltech
    Plugin Author

    Posted 3 years ago #

    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.


  3. FolioVision
    Posted 3 years ago #

    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.


  4. David Klhufek
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Access Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.