Add New Devices Not Showing Up in Traccar Server

LoadManager7 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 Tananaev7 years ago

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

LoadManager7 years ago

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

Anton Tananaev7 years ago

By restarting the service.

LoadManager7 years ago

Thank you Anton.