feat(backend/assets): disabled cache checks

This commit is contained in:
Alexander Zavorotynskiy 2022-06-08 12:38:38 +02:00
parent a996fac4d3
commit c4081ce78a
2 changed files with 4 additions and 4 deletions

View file

@ -46,7 +46,7 @@ func main() {
func(sessionID uint64, message messages.Message, e *types.Meta) {
switch msg := message.(type) {
case *messages.AssetCache:
cacher.CacheURL(sessionID, msg.URL)
cacher.CacheURL(sessionID, msg.URL) // disabled cache checks
totalAssets.Add(context.Background(), 1)
case *messages.ErrorEvent:
if msg.Source != "js_exception" {

View file

@ -56,9 +56,9 @@ func (c *cacher) cacheURL(requestURL string, sessionID uint64, depth byte, conte
return
}
c.timeoutMap.add(cachePath)
if c.s3.Exists(cachePath) {
return
}
//if c.s3.Exists(cachePath) {
// return
//}
req, _ := http.NewRequest("GET", requestURL, nil)
req.Header.Set("Cookie", "ABv=3;") // Hack for rueducommerce