Set unsplash empty collection caching to one hour
This commit is contained in:
parent
ebfa982c72
commit
8f35b9d579
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ func (p *Provider) Search(search string, page int64) (result []*background.Image
|
||||||
var existsForPage bool
|
var existsForPage bool
|
||||||
|
|
||||||
if emptySearchResult != nil &&
|
if emptySearchResult != nil &&
|
||||||
time.Since(emptySearchResult.lastCached) < time.Minute {
|
time.Since(emptySearchResult.lastCached) < time.Hour {
|
||||||
_, existsForPage = emptySearchResult.images[page]
|
_, existsForPage = emptySearchResult.images[page]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue