Skip to content

Commit

Permalink
increase guid2app cache TTL from 5 sec to 1 minute
Browse files Browse the repository at this point in the history
  • Loading branch information
metskem committed Oct 3, 2024
1 parent e0ee3f3 commit fc3f0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func Guid2AppName(guid string) string {
for {
time.Sleep(5 * time.Second)
for key, value := range guid2appNameCache {
if time.Since(value.created) > 5*time.Second {
if time.Since(value.created) > 1*time.Minute {
delete(guid2appNameCache, key)
PrintfIfDebug("cleaned cache entry for key %s\n", key)
}
Expand Down

0 comments on commit fc3f0b6

Please sign in to comment.