diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-12-14 12:33:34 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-12-14 12:33:34 -0800 |
commit | 793835bc695013433e85b1835d9220ff98a358f4 (patch) | |
tree | c2985bd0f6a296928c8c0582125d9194f11bc31d | |
parent | 0536b80a21addfa1f0c79346da85e8ffab4036c7 (diff) |
adding cache invalidation to system start/init
-rw-r--r-- | system/db/init.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/system/db/init.go b/system/db/init.go index df993e6..fa2c42e 100644 --- a/system/db/init.go +++ b/system/db/init.go @@ -79,6 +79,12 @@ func Init() { log.Fatalln("Coudn't initialize db with buckets.", err) } + // invalidate cache on system start + err = InvalidateCache() + if err != nil { + log.Fatalln("Failed to invalidate cache.", err) + } + go func() { for t := range content.Types { SortContent(t) |