Closed duker33 closed 5 years ago
on local machine with fixtures category page eat responses with ~1.6 sec. DB queries part takes only 100 ms.
So, we have ~1.5 sec inside app
seems it's about templates. View logic with disabled templates stuff responses in 300-400 ms.
And version 1.5.0
renders category page with 1.5 sec too.
Maybe we had caching enabled, but it disabled now
seems it's problems with cache. Checked with debug toolbar on prod: we have 0 cache hits now. So, i'll see on our caching mech
blocked by #606
now release cache mech enabling and test if this issue is resolved
released it. Problem is still there
i'll fully reproduce prods SE structure on local and start debugging
reproduced it on local. Gunicorn worker fails with timeout. I'm debugging it
found thin place in code. It's here: https://github.com/fidals/refarm-site/blob/master/images/models.py#L36
This two nested cycle eat ~6 sec of cpu time for every request on my local machine (core i7)
appended lru_cache for this problem place. Now releasing it
Every page responses with timeout of ~3s. Sometimes category and product pages return 502 error.
Checked this pages: Main, Category, Product