1
0
mirror of https://github.com/JustKato/FreePad.git synced 2026-02-23 15:50:46 +02:00

* Changed the frequency of the views save to one minute

This commit is contained in:
2022-06-01 13:27:25 +03:00
parent 53066025f0
commit 42eb5add65

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()
}
}