From 8f35b9d5791a53c5482a62b83f8c450fab67ba30 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 31 May 2020 20:50:51 +0200 Subject: [PATCH] Set unsplash empty collection caching to one hour --- pkg/modules/background/unsplash/unsplash.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/modules/background/unsplash/unsplash.go b/pkg/modules/background/unsplash/unsplash.go index 2b1e4f60..ddb4391e 100644 --- a/pkg/modules/background/unsplash/unsplash.go +++ b/pkg/modules/background/unsplash/unsplash.go @@ -135,7 +135,7 @@ func (p *Provider) Search(search string, page int64) (result []*background.Image var existsForPage bool if emptySearchResult != nil && - time.Since(emptySearchResult.lastCached) < time.Minute { + time.Since(emptySearchResult.lastCached) < time.Hour { _, existsForPage = emptySearchResult.images[page] }