diff options
author | Steve <nilslice@gmail.com> | 2016-12-12 00:34:46 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-12 00:34:46 -0800 |
commit | e7c23d71d5179744c230ab4e25f405a5607ba905 (patch) | |
tree | 758eba1275e1436220281fd45e3ad642fcda4598 /system/db/config.go | |
parent | f39c1519ab382a343c05163f00f38c83bff3583d (diff) | |
parent | 3b10b345045428b9011eecd0ded9c04db42bf28f (diff) |
Merge pull request #20 from bosssauce/ponzu-dev
[core] cache-control & db specifier namespace clean-up
Diffstat (limited to 'system/db/config.go')
-rw-r--r-- | system/db/config.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/system/db/config.go b/system/db/config.go index ab1c720..b5a07e4 100644 --- a/system/db/config.go +++ b/system/db/config.go @@ -2,12 +2,9 @@ package db import ( "bytes" - "encoding/base64" "encoding/json" - "fmt" "net/url" "strings" - "time" "github.com/bosssauce/ponzu/system/admin/config" @@ -124,11 +121,3 @@ func ConfigAll() ([]byte, error) { func ConfigCache(key string) string { return configCache.Get(key) } - -// NewEtag generates a new Etag for response caching -func NewEtag() string { - now := fmt.Sprintf("%d", time.Now().Unix()) - etag := base64.StdEncoding.EncodeToString([]byte(now)) - - return etag -} |