From f59278764bad014fb265d02a8611b25119d30fc5 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Wed, 18 Dec 2024 07:19:31 -0800 Subject: [PATCH] fix: bump bot/webscraper server generated page cache to 1 minute. For #4020 --- webserver/handlers/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webserver/handlers/index.go b/webserver/handlers/index.go index a849650ae..5fa7e9c0e 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)