summaryrefslogtreecommitdiff
path: root/system/db/config.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-06 17:53:57 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-06 17:53:57 -0800
commitf2fc4db1ea0dbf4a1f75fb3e52b64e6f529e5e44 (patch)
tree7883ac215fd18966b8a1919c24339ec430bddac3 /system/db/config.go
parent64050ef8065bccdef0aab1748040995c637fe9ed (diff)
adding cache (client-based, Etag) to API responses in addition to static files uploaded
Diffstat (limited to 'system/db/config.go')
-rw-r--r--system/db/config.go11
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
-}