mirror of
https://github.com/glanceapp/glance.git
synced 2024-11-25 09:54:50 +01:00
Increase lobsters widget cache time
This commit is contained in:
parent
b83bf9bc09
commit
757f68c872
@ -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…
Reference in New Issue
Block a user