You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In current setup enforcer does not automatically refresh in memory data, we can call watcher.should_reload() before every data access from enforcer.
116
+
```
117
+
from setting import watcher
118
+
watcher.should_reload()
119
+
```
120
+
If there are any changes in db this call will refresh in memory data from database
121
+
122
+
For automatic reloading of data, parent process need to poll child process for messages and call should_reload function if there is any message in pipe between child and parent process
0 commit comments