summaryrefslogtreecommitdiff
path: root/system/db/config.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2017-03-21 14:17:34 -0700
committerSteve Manuel <nilslice@gmail.com>2017-03-21 14:17:34 -0700
commite7b51324f2578cc9c1ef4eeababfcec14162a3e9 (patch)
treebd3b186a88f3f6add0bcb377fbf5353e69fb2d26 /system/db/config.go
parent7676659cdd5336c3eebd668d4d69571609c88f38 (diff)
adding cache-control age and disabler
Diffstat (limited to 'system/db/config.go')
-rw-r--r--system/db/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/system/db/config.go b/system/db/config.go
index 2706e97..6a409c2 100644
--- a/system/db/config.go
+++ b/system/db/config.go
@@ -13,6 +13,11 @@ import (
"github.com/gorilla/schema"
)
+const (
+ // DefaultMaxAge provides a 2592000 second (30-day) cache max-age setting
+ DefaultMaxAge = int64(60 * 60 * 24 * 30)
+)
+
var configCache map[string]interface{}
func init() {