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?
You should use API to add geofences.
Traccar use a cache for the databse, that's why you can not see the changes you done "outside" the webapp.
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?