Increase lobsters widget cache time

This commit is contained in:
Svilen Markov 2024-06-03 00:46:26 +01:00
parent b83bf9bc09
commit 757f68c872

View File

@ -20,7 +20,7 @@ type Lobsters struct {
}
func (widget *Lobsters) Initialize() error {
widget.withTitle("Lobsters").withCacheDuration(30 * time.Minute)
widget.withTitle("Lobsters").withCacheDuration(time.Hour)
if widget.SortBy == "" || (widget.SortBy != "hot" && widget.SortBy != "new") {
widget.SortBy = "hot"