* Changed the frequency of the views save to one minute

This commit is contained in:
Daniel Legt 2022-06-01 13:27:25 +03:00
parent 53066025f0
commit 42eb5add65
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ func TaskManager() {
func savePostHandler() {
// Save the views cache
fmt.Println("[Task::Save]: File save registered")
for range time.NewTicker(time.Second).C {
for range time.NewTicker(time.Minute * 1).C {
objects.SavePostViewsCache()
}
}