Add New Devices Not Showing Up in Traccar Server

LoadManager6 years ago

We are writting an app to automate the creation of new Devices within the Traccar server. When we create a new device we are adding a new record in the dbo.devices table and the dbo.user_device table. We are making sure the dbo.devices.id = dbo.user_device.deviceid. The problem is sometimes these devices show up in Traccar server and other times they do not. We are not sure what is causing this issue.
I looked at all the tables that are updated when a new device is added via the Traccar Server and it only seems to be those two tables. If you can think of any reason why a device will not show up in the Traccar Server it would be greatly appreciated.

Anton Tananaev6 years ago

Traccar has internal cache, so if you want to register new device you need to use API.

LoadManager6 years ago

Thank you Anton. Ok I will use that. However for troubleshooting purposes is there a way to clear the cache?

Anton Tananaev6 years ago

By restarting the service.

LoadManager6 years ago

Thank you Anton.