summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/db/cache.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/system/db/cache.go b/system/db/cache.go
index 93cd3a6..6fefd0a 100644
--- a/system/db/cache.go
+++ b/system/db/cache.go
@@ -61,7 +61,11 @@ func InvalidateCache() error {
case []string:
vv := v.([]string)
for i := range vv {
- data.Add(k, vv[i])
+ if i == 0 {
+ data.Set(k, vv[i])
+ } else {
+ data.Add(k, vv[i])
+ }
}
}
}