Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

fix: bump bot/webscraper server generated page cache to 1 minute. For #4020

Gabe Kangase37c153452e5
diff --git a/webserver/handlers/index.go b/webserver/handlers/index.go
index a849650ae2..5fa7e9c0ee 100644
--- a/webserver/handlers/index.go
+++ b/webserver/handlers/index.go
@@ -128,7 +128,7 @@ type MetadataPage struct {
// to give to Opengraph clients and web scrapers (bots, web crawlers, etc).
func handleScraperMetadataPage(w http.ResponseWriter, r *http.Request) {
cacheKey := "bot-scraper-html"
- cacheHtmlExpiration := time.Duration(10) * time.Second
+ cacheHtmlExpiration := time.Duration(60) * time.Second
c := gc.GetOrCreateCache(cacheKey, cacheHtmlExpiration)
cachedHtml := c.GetValueForKey(cacheKey)