WordPress.org

Ready to get started?Download WordPress

Forums

add_user_to_blog(), permissions and Memcache (2 posts)

  1. jkhoffman
    Member
    Posted 1 year ago #

    Hello, everyone.

    I have a multisite install using BatCache and Memcached. PHP sessions are also being stored on Memcached.

    After creating a new blog with an existing user, the user is shown a permissions error when trying to access /wp-admin. If I flush memcache, the problem resolves.

    I'm assuming there is something being stored in the Object Cache that needs to be cleared. My plan is to hook into the add_user_to_blog action and flush the required keys, but I'm not sure which key(s) need to be flushed.

    These keys look interesting:
    wp_<blog_id>_user_roles
    wp_<blog_id>_user_level

    Anyone know if those are the right keys to flush, or how else I might resolve the issue?

    Thanks for any assistance!

    Jeff

  2. Yes, flushing those would be right.

Topic Closed

This topic has been closed to new replies.

About this Topic