We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 30712
    • 1 Posts
    After I update a UserGroupMember, isMember() is still using the old data (despite the member_groups table updating correctly).

    I’m assuming this is because of some kind of object caching. I’ve tried $cacheManager->clearCache() with no luck.

    Any help with flushing the cache so isMember works without having to have the user login/out would be appreciated!

    Thanks!
      • 3749
      • 24,544 Posts
      Did you try Security -> Flush All Permissions?

      I’m not sure what the PHP code for that would be. You can see the JS code for it in System -> Actions by right-clicking on the "Flush Permissions" item on the right and selecting update menu.

        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting