From 4b9ff1bd206adb826262acd4e3daf5c962518d7c Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 10 Dec 2022 09:27:17 -0800 Subject: Fix cache updates --- src/main/java/org/traccar/session/cache/CacheManager.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/main/java/org/traccar') diff --git a/src/main/java/org/traccar/session/cache/CacheManager.java b/src/main/java/org/traccar/session/cache/CacheManager.java index dc7382223..9d2350012 100644 --- a/src/main/java/org/traccar/session/cache/CacheManager.java +++ b/src/main/java/org/traccar/session/cache/CacheManager.java @@ -227,6 +227,15 @@ public class CacheManager implements BroadcastInterface { broadcastService.invalidateObject(true, object.getClass(), object.getId()); } + if (object instanceof Server) { + invalidateServer(); + return; + } + if (object instanceof User) { + invalidateUsers(); + return; + } + boolean invalidate = false; var before = getObject(object.getClass(), object.getId()); if (before == null) { -- cgit v1.2.3