03.11.2021, 07:57
You need to reload the web server after the db query. ACL is cached, reloading the web server updates this cache.
Code:
os.execute('/etc/init.d/nginx reload')