Increase lobsters widget cache time
This commit is contained in:
parent
b83bf9bc09
commit
757f68c872
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ type Lobsters struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (widget *Lobsters) Initialize() error {
|
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") {
|
if widget.SortBy == "" || (widget.SortBy != "hot" && widget.SortBy != "new") {
|
||||||
widget.SortBy = "hot"
|
widget.SortBy = "hot"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue