Directly Adding Geofences to Database

Mark Bailey5 years ago

From my application I can directly add Geofences to the Traccar database and assign them as required to various devices and make the appropriate changes to the other tables that are needed.

However, when log in I cannot see the Geofences and can find no way to force Traccar to re-read from the Database.
If I restart the Traccar Server then I can see everything no problem.

I have tried adding <entry key='decoder.ignoreSessionCache'>true</entry> and <entry key='decoder.ignoreSessionCache'>false</entry> but that does not seem to make any difference.

Is there any other way to make Traccar re-read the data from the DB rather than the cache please?

Anton Tananaev5 years ago

You should use API to add geofences.

Peter Flower5 years ago

Traccar use a cache for the databse, that's why you can not see the changes you done "outside" the webapp.