0

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

This commit is contained in:
Gabe Kangas 2024-12-18 07:19:31 -08:00
parent 852dd61810
commit f59278764b

View File

@ -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)