• Hi, I would like to vote to add support for more user roles.
    Now it only works for an administrator. I tried to get around it, but the purge_all() method itself has another check for the current logged-in user being an administrator. To my knowledge, there’s no way to get around this from outside your plugin.

    There’s a lot to say for adding more user role support, in fact almost all of my clients could benefit for it. They edit content but do not need to be an administrator. Yet, there are times the caching is not being cleared automatically upon saving certain content: multilingual translatepress, elementor popup and more. Those clients end up calling me for clicking the ‘purge cache’ button.

    It would not be that much of work to add for instance the editor or shop_manager to the list of user roles that can purge the cache.

    Thanks.

  • The topic ‘Consider adding support for more user roles’ is closed to new replies.