WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. FolioVision
    Member
    Posted 1 year ago #

    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.

    Thanks,
    Martin

    http://wordpress.org/extend/plugins/advanced-access-manager/

  2. WP AAM
    Member
    Plugin Author

    Posted 1 year 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.

    Regards,
    Vasyl

  3. FolioVision
    Member
    Posted 1 year 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.

    Thanks,
    Martin

  4. David Klhufek
    Member
    Posted 11 months 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

About this Topic

Tags

No tags yet.