Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whether the modified tables takes effect immediately #182

Open
moluzhui opened this issue Nov 2, 2019 · 3 comments
Open

Whether the modified tables takes effect immediately #182

moluzhui opened this issue Nov 2, 2019 · 3 comments
Assignees
Labels
Milestone

Comments

@moluzhui
Copy link

moluzhui commented Nov 2, 2019

auth mysql has two tables including mqtt_user and mqtt_acl. My attempts to add new users took effect immediately, but the access and topic changes to the acl didn't seem to take effect immediately. Whether some fields of both tables need to be restarted by the emqx or reload plug-in, or whether the broker needs to be reconnected to make changes to the database take effect?

@HJianBo
Copy link
Member

HJianBo commented Nov 19, 2019

Hi @moluzhui In the emqx.conf, we enable ACL cache by default:

enable_acl_cache = on

So, it can not works immediately after modified ACL rows

@moluzhui
Copy link
Author

So, if I set enable_acl_cache to off, does the modify table implementation take effect in time, or do I need to change some other configuration?

@HJianBo
Copy link
Member

HJianBo commented Nov 21, 2019

No, Just turn off theenable_acl_cache option

@turtleDeng turtleDeng added this to the 4.0-rc.4 milestone Dec 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants