diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-08 08:14:20 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-08 08:14:20 -0700 |
commit | 65d3654dcca878cfd839e40c0dd020da199be09e (patch) | |
tree | 8313b00d39f9b0203fb4e873cab4737cca985f07 /src/main/java/org/traccar/api | |
parent | cd229daa23cfc43ad5056c45c4aaecefdbbf826c (diff) | |
download | trackermap-server-65d3654dcca878cfd839e40c0dd020da199be09e.tar.gz trackermap-server-65d3654dcca878cfd839e40c0dd020da199be09e.tar.bz2 trackermap-server-65d3654dcca878cfd839e40c0dd020da199be09e.zip |
More cache improvements
Diffstat (limited to 'src/main/java/org/traccar/api')
-rw-r--r-- | src/main/java/org/traccar/api/BaseObjectResource.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/api/BaseObjectResource.java b/src/main/java/org/traccar/api/BaseObjectResource.java index c033fbb62..eb1db5e89 100644 --- a/src/main/java/org/traccar/api/BaseObjectResource.java +++ b/src/main/java/org/traccar/api/BaseObjectResource.java @@ -106,7 +106,7 @@ public abstract class BaseObjectResource<T extends BaseModel> extends BaseResour new Columns.Exclude("id"), new Condition.Equals("id", "id"))); } - cacheManager.updateOrInvalidate(baseClass, entity.getId()); + cacheManager.updateOrInvalidate(entity); LogAction.edit(getUserId(), entity); @@ -135,7 +135,7 @@ public abstract class BaseObjectResource<T extends BaseModel> extends BaseResour } else { storage.removeObject(baseClass, new Request(new Condition.Equals("id", "id", id))); } - cacheManager.updateOrInvalidate(baseClass, id); + cacheManager.invalidate(baseClass, id); LogAction.remove(getUserId(), baseClass, id); |