Skip to content

Commit

Permalink
change invalidate check time to 10m and remove noisy unneeded tables
Browse files Browse the repository at this point in the history
  • Loading branch information
SyniRon committed Jan 26, 2025
1 parent f3ab6f2 commit eeb39bc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cache/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ var monitoredTables = map[string]struct{}{
"xf_nf_rosters_service_record": {},
"xf_nf_rosters_record_type": {},
"xf_nf_rosters": {},
"xf_user": {},
"xf_user_connected_account": {},
"xf_post": {},
}

func CacheManager(cache *RedisCache, ds datastores.Datastore) {
Expand Down Expand Up @@ -82,6 +80,6 @@ func CacheManager(cache *RedisCache, ds datastores.Datastore) {
} else {
Info.Println("Cached table updates are up to date, not invalidating")
}
time.Sleep(5 * time.Minute)
time.Sleep(10 * time.Minute)
}
}

0 comments on commit eeb39bc

Please sign in to comment.