Traccar data not updating when i add a device or user in sql database

avishekzone6 years ago

Traccar data not updating when i add a device or user in sql database i have to restart the sever then only the data gets uploaded . How can i make it visible without restarting the traccar server any idea?
PS : I am importing data from my another site and triggering in database


is there any way instead of restarting the server can i delete the cache from somewhere? i cant edit the code to hit the api

Anton Tananaev6 years ago

There is no way to delete cache. As I already answered you on GitHub, the right way is to use Traccar API.

avishekzone6 years ago

but i cant update the code of another server i only have access to database . can you tell me what part of java code runs when the server starts(while importing mysql database) and cache it i just want the part of the code i would edit the java api and make it as i want . Previously i added locating devices in nearer places also.

jeeva6 years ago

What do you mean by can't update code of other server , you just have to call device or user REST API of that corresponding server to add user or device. Cache automatically refreshes when you do this via API. You can access server database but not API.