diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-01-11 23:51:29 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-11 23:51:29 +1300 |
commit | 29c8ab33a712e3fee23f21c5e58b2d1ab64010c8 (patch) | |
tree | 4c6b5b7c4bf6e8028563661c6d7f8c6cda7ee3e9 /src/org/traccar/database/DeviceManager.java | |
parent | df584abd8c0be33c21870dc107ea3dd0d8bc2dfd (diff) | |
parent | df65b06ad4a7d072f1affb837733cebc7058c2c0 (diff) | |
download | trackermap-server-29c8ab33a712e3fee23f21c5e58b2d1ab64010c8.tar.gz trackermap-server-29c8ab33a712e3fee23f21c5e58b2d1ab64010c8.tar.bz2 trackermap-server-29c8ab33a712e3fee23f21c5e58b2d1ab64010c8.zip |
Merge pull request #3710 from Abyss777/fix_delete_group
Update group and device cache on group delete
Diffstat (limited to 'src/org/traccar/database/DeviceManager.java')
-rw-r--r-- | src/org/traccar/database/DeviceManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/DeviceManager.java b/src/org/traccar/database/DeviceManager.java index cb410b7c0..4c329786f 100644 --- a/src/org/traccar/database/DeviceManager.java +++ b/src/org/traccar/database/DeviceManager.java @@ -65,7 +65,7 @@ public class DeviceManager extends BaseObjectManager<Device> implements Identity refreshLastPositions(); } - private void updateDeviceCache(boolean force) throws SQLException { + public void updateDeviceCache(boolean force) throws SQLException { long lastUpdate = devicesLastUpdate.get(); if ((force || System.currentTimeMillis() - lastUpdate > dataRefreshDelay) && devicesLastUpdate.compareAndSet(lastUpdate, System.currentTimeMillis())) { |