summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2011-11-07 21:19:13 -0500
committerJames Moger <james.moger@gitblit.com>2011-11-07 21:19:13 -0500
commit85079402ffa78dad8881eb0d48a32eb3eee8b919 (patch)
tree177ee4454719d6bf8a4b391a40ed10275ac1c9eb /src/com/gitblit
parent9275bd77ebc70efeea44bbc9fc3b5723c697a475 (diff)
downloadgitblit-85079402ffa78dad8881eb0d48a32eb3eee8b919.tar.gz
gitblit-85079402ffa78dad8881eb0d48a32eb3eee8b919.zip
Set resource cache duration to 90 days instead of 120 mins (issue 17)
Diffstat (limited to 'src/com/gitblit')
-rw-r--r--src/com/gitblit/wicket/GitBlitWebApp.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/gitblit/wicket/GitBlitWebApp.java b/src/com/gitblit/wicket/GitBlitWebApp.java
index 3edcf6a7..301adb32 100644
--- a/src/com/gitblit/wicket/GitBlitWebApp.java
+++ b/src/com/gitblit/wicket/GitBlitWebApp.java
@@ -69,6 +69,11 @@ public class GitBlitWebApp extends WebApplication {
getRequestCycleSettings().setGatherExtendedBrowserInfo(true);
}
+ // configure the resource cache duration to 90 days for deployment
+ if (!GitBlit.isDebugMode()) {
+ getResourceSettings().setDefaultCacheDuration(90 * 86400);
+ }
+
// setup the standard gitweb-ish urls
mount("/summary", SummaryPage.class, "r");
mount("/log", LogPage.class, "r", "h");