summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/db/init.go6
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)