Skip to content

Commit

Permalink
disable caching slot details
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Aug 1, 2023
1 parent f44a1d0 commit fcb81fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/slot.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func Slot(w http.ResponseWriter, r *http.Request) {
func getSlotPageData(blockSlot int64, blockRoot []byte) *models.SlotPageData {
pageData := &models.SlotPageData{}
pageCacheKey := fmt.Sprintf("slot:%v:%x", blockSlot, blockRoot)
pageData = services.GlobalFrontendCache.ProcessCachedPage(pageCacheKey, true, pageData, func(pageCall *services.FrontendCacheProcessingPage) interface{} {
pageData = services.GlobalFrontendCache.ProcessCachedPage(pageCacheKey, false, pageData, func(pageCall *services.FrontendCacheProcessingPage) interface{} {
return buildSlotPageData(blockSlot, blockRoot)
}).(*models.SlotPageData)
return pageData
Expand Down

0 comments on commit fcb81fe

Please sign in to comment.