summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-21 20:04:02 +0100
committerSimon Rettberg2016-01-21 20:04:02 +0100
commit7c023895e8e8f686cc1583c3f36365114747ec06 (patch)
tree3abc8a12e9e8a6a94c42ed61c577603b95ddb17c /dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache
parentMerge branch 'v1.1' of git.openslx.org:openslx-ng/tutor-module into v1.1 (diff)
downloadtutor-module-7c023895e8e8f686cc1583c3f36365114747ec06.tar.gz
tutor-module-7c023895e8e8f686cc1583c3f36365114747ec06.tar.xz
tutor-module-7c023895e8e8f686cc1583c3f36365114747ec06.zip
[client] Lower caching time for lectures and images from 2min to 30sec
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/ImageCache.java2
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/LectureCache.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/ImageCache.java b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/ImageCache.java
index 051e7b26..fdd71dfb 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/ImageCache.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/ImageCache.java
@@ -13,7 +13,7 @@ import org.openslx.util.GenericDataCache.CacheMode;
public class ImageCache {
- private static final int CACHE_TIME_LIST_MS = 2 * 60 * 1000;
+ private static final int CACHE_TIME_LIST_MS = 30 * 1000;
private static final GenericDataCache<List<ImageSummaryRead>> listCache = new GenericDataCache<List<ImageSummaryRead>>(CACHE_TIME_LIST_MS) {
@Override
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/LectureCache.java b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/LectureCache.java
index 04debc3d..b20acbef 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/LectureCache.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/thrift/cache/LectureCache.java
@@ -13,7 +13,7 @@ import org.openslx.util.GenericDataCache.CacheMode;
public class LectureCache {
- private static final int CACHE_TIME_LIST_MS = 2 * 60 * 1000;
+ private static final int CACHE_TIME_LIST_MS = 30 * 1000;
private static final GenericDataCache<List<LectureSummary>> listCache = new GenericDataCache<List<LectureSummary>>(CACHE_TIME_LIST_MS) {
@Override