diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-09 06:39:10 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-09 06:39:10 -0700 |
commit | c4ff983ffe9a03a57d3ab0596abe8bce08c1ae2e (patch) | |
tree | 0cb36557ca3cbad928099edb37e7a8d2101b4f19 /src/main/java/org/traccar/database | |
parent | 65d3654dcca878cfd839e40c0dd020da199be09e (diff) | |
download | trackermap-server-c4ff983ffe9a03a57d3ab0596abe8bce08c1ae2e.tar.gz trackermap-server-c4ff983ffe9a03a57d3ab0596abe8bce08c1ae2e.tar.bz2 trackermap-server-c4ff983ffe9a03a57d3ab0596abe8bce08c1ae2e.zip |
Add position cache
Diffstat (limited to 'src/main/java/org/traccar/database')
-rw-r--r-- | src/main/java/org/traccar/database/DeviceManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/database/DeviceManager.java b/src/main/java/org/traccar/database/DeviceManager.java index b1ea0b8b7..0bac8f642 100644 --- a/src/main/java/org/traccar/database/DeviceManager.java +++ b/src/main/java/org/traccar/database/DeviceManager.java @@ -26,6 +26,7 @@ import java.util.concurrent.atomic.AtomicLong; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.traccar.Main; import org.traccar.config.Config; import org.traccar.Context; import org.traccar.config.Keys; @@ -36,6 +37,7 @@ import org.traccar.model.DeviceAccumulators; import org.traccar.model.Group; import org.traccar.model.Position; import org.traccar.model.Server; +import org.traccar.session.cache.CacheManager; import org.traccar.storage.StorageException; public class DeviceManager extends BaseObjectManager<Device> implements IdentityManager { @@ -406,6 +408,7 @@ public class DeviceManager extends BaseObjectManager<Device> implements Identity } getDataManager().addObject(last); updateLatestPosition(last); + Main.getInjector().getInstance(CacheManager.class).updatePosition(last); } else { throw new IllegalArgumentException(); } |