diff --git a/src/cache/duration.go b/src/cache/duration.go index f11768d7b8d2..30d312ab1942 100644 --- a/src/cache/duration.go +++ b/src/cache/duration.go @@ -9,6 +9,7 @@ type Duration string const ( INFINITE = Duration("infinite") ONEWEEK = Duration("168h") + ONEDAY = Duration("24h") ) func (d Duration) Seconds() int { diff --git a/src/cli/toggle.go b/src/cli/toggle.go index a59fc5d30595..bc7c963a3929 100644 --- a/src/cli/toggle.go +++ b/src/cli/toggle.go @@ -50,7 +50,7 @@ var toggleCmd = &cobra.Command{ newToggles = append(newToggles, segment) } - env.Session().Set(cache.TOGGLECACHE, strings.Join(newToggles, ","), "1day") + env.Session().Set(cache.TOGGLECACHE, strings.Join(newToggles, ","), cache.ONEDAY) }, }