summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-11-29 23:10:37 -0800
committerSteve Manuel <nilslice@gmail.com>2016-11-29 23:10:37 -0800
commit6baa1e14af020ace85d632ef44fa8725bc57250c (patch)
tree075de073e28163d896d313fae7f7d9a06edf663d
parent27e593e6e1e0a3e3ceb4aa493b460572fcf026c3 (diff)
testing check for cache invalidation to after values are decoded
-rw-r--r--system/db/config.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/system/db/config.go b/system/db/config.go
index 8bcf16b..e3dff50 100644
--- a/system/db/config.go
+++ b/system/db/config.go
@@ -57,9 +57,11 @@ func SetConfig(data url.Values) error {
}
// check for "invalidate" value to reset the Etag
- fmt.Println(cfg.CacheInvalidate)
+ fmt.Println(len(cfg.CacheInvalidate))
if len(cfg.CacheInvalidate) > 0 && cfg.CacheInvalidate[0] == "invalidate" {
+ fmt.Println(cfg.CacheInvalidate)
cfg.Etag = NewEtag()
+ cfg.CacheInvalidate = []string{}
}
j, err := json.Marshal(cfg)