fix: bump bot/webscraper server generated page cache to 1 minute. For #4020
This commit is contained in:
parent
852dd61810
commit
f59278764b
@ -128,7 +128,7 @@ type MetadataPage struct {
|
|||||||
// to give to Opengraph clients and web scrapers (bots, web crawlers, etc).
|
// to give to Opengraph clients and web scrapers (bots, web crawlers, etc).
|
||||||
func handleScraperMetadataPage(w http.ResponseWriter, r *http.Request) {
|
func handleScraperMetadataPage(w http.ResponseWriter, r *http.Request) {
|
||||||
cacheKey := "bot-scraper-html"
|
cacheKey := "bot-scraper-html"
|
||||||
cacheHtmlExpiration := time.Duration(10) * time.Second
|
cacheHtmlExpiration := time.Duration(60) * time.Second
|
||||||
c := gc.GetOrCreateCache(cacheKey, cacheHtmlExpiration)
|
c := gc.GetOrCreateCache(cacheKey, cacheHtmlExpiration)
|
||||||
|
|
||||||
cachedHtml := c.GetValueForKey(cacheKey)
|
cachedHtml := c.GetValueForKey(cacheKey)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user