Skip to content

Commit

Permalink
refs #5199 MOD requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Berthold Bußkamp committed Jan 15, 2021
1 parent d1e538f commit 89ffa51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ public class CacheInterceptor implements Interceptor {

private int maxAge;

/**
* Create the interceptor
*
* @param maxAge Sets the maximum age of a cached response
*/
public CacheInterceptor(int maxAge) {
this.maxAge = maxAge;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ else if (opencastSeriesAreOptionalStr.equals("false"))
cacheDir = new File(opencastCacheDir);
}

long cacheSize = Long.valueOf(parsed.getProperty(OPENCAST_CACHE_SIZE,"10")) * 1024 * 1024;
long cacheSize = Long.valueOf(parsed.getProperty(OPENCAST_CACHE_SIZE,"50")) * 1024 * 1024;

if (!opencastCacheExpirationDuration.isZero()) {
LOGGER.info("Configured Opencast external API cache at \"{}\" with max size {} Byte", cacheDir, cacheSize);
Expand Down

0 comments on commit 89ffa51

Please sign in to comment.