aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <atananaev@lyft.com>2020-12-28 10:29:02 -0800
committerAnton Tananaev <atananaev@lyft.com>2020-12-28 10:29:02 -0800
commit04cd9f4d14111b6d568a8ddd7e5501873276b339 (patch)
treec7af253a2ce7211a698dd1454711d8c4f091cf7c /src/main/java/org/traccar/database
parent5081d445b917b26fcfe65357c3d66ff43b65fba7 (diff)
downloadtrackermap-server-04cd9f4d14111b6d568a8ddd7e5501873276b339.tar.gz
trackermap-server-04cd9f4d14111b6d568a8ddd7e5501873276b339.tar.bz2
trackermap-server-04cd9f4d14111b6d568a8ddd7e5501873276b339.zip
No query caching
Diffstat (limited to 'src/main/java/org/traccar/database')
-rw-r--r--src/main/java/org/traccar/database/DataManager.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/org/traccar/database/DataManager.java b/src/main/java/org/traccar/database/DataManager.java
index bd1c77520..d3a643c2e 100644
--- a/src/main/java/org/traccar/database/DataManager.java
+++ b/src/main/java/org/traccar/database/DataManager.java
@@ -224,12 +224,10 @@ public class DataManager {
if (query == null) {
if (generateQueries) {
query = constructObjectQuery(action, clazz, extended);
- config.setString(queryName, query);
} else {
LOGGER.info("Query not provided: " + queryName);
}
}
-
return query;
}
@@ -249,14 +247,12 @@ public class DataManager {
String query = config.getString(queryName);
if (query == null) {
if (generateQueries) {
- query = constructPermissionQuery(action, owner,
- property.equals(User.class) ? ManagedUser.class : property);
- config.setString(queryName, query);
+ query = constructPermissionQuery(
+ action, owner, property.equals(User.class) ? ManagedUser.class : property);
} else {
LOGGER.info("Query not provided: " + queryName);
}
}
-
return query;
}