Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache tweaks #99

Merged
merged 2 commits into from
Jan 7, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Increase TTL and cache warmer intervals
  • Loading branch information
mgdigital committed Jan 7, 2024
commit f9ca77d55218d5aefc5b5028362aa2917d6cd8ba
2 changes: 1 addition & 1 deletion internal/database/cache/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func NewDefaultConfig() Config {
return Config{
CacheEnabled: true,
EaserEnabled: true,
Ttl: time.Minute * 20,
Ttl: time.Minute * 60,
MaxKeys: 1000,
}
}
2 changes: 1 addition & 1 deletion internal/database/search/warmer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ type Config struct {
func NewDefaultConfig() Config {
return Config{
Enabled: true,
Interval: 10 * time.Minute,
Interval: 50 * time.Minute,
}
}