diff options
author | Steve <nilslice@gmail.com> | 2017-03-21 14:58:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-21 14:58:50 -0700 |
commit | c78e6d7adec86a7799f9143f021784635f7665a2 (patch) | |
tree | 09e6455462d4b34107791ae776e498044a2c393f /system/db/config.go | |
parent | 7676659cdd5336c3eebd668d4d69571609c88f38 (diff) | |
parent | 6d78e9f59a6fac341840d23544a045853a07fef4 (diff) |
Merge pull request #104 from ponzu-cms/ponzu-dev
[core] add Configuration control to disable HTTP Cache and set Max-Age duration
Diffstat (limited to 'system/db/config.go')
-rw-r--r-- | system/db/config.go | 5 |
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() { |