Fix empire page breaking the cache
@@ -1216,8 +1216,12 @@ func (b *OGame) getPageContent(vals url.Values, opts ...Option) ([]byte, error)
}
if !IsAjaxPage(vals) && isLogged(pageHTMLBytes) {
+ page := vals.Get("page")
+ component := vals.Get("component")
+ if page != "standalone" && component != "empire" {
b.cacheFullPageInfo(page, pageHTMLBytes)
}
+ }
if !cfg.SkipInterceptor {
go func() {
