diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-11-29 23:10:37 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-11-29 23:10:37 -0800 |
commit | 6baa1e14af020ace85d632ef44fa8725bc57250c (patch) | |
tree | 075de073e28163d896d313fae7f7d9a06edf663d | |
parent | 27e593e6e1e0a3e3ceb4aa493b460572fcf026c3 (diff) |
testing check for cache invalidation to after values are decoded
-rw-r--r-- | system/db/config.go | 4 |
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) |