ecommerce icon indicating copy to clipboard operation
ecommerce copied to clipboard

EG-43: Cache catalog query contains call

Open BenjiLee opened this issue 6 years ago • 2 comments

This PR will cache the response from CatalogQueryContainsViewSet from the course-discovery IDA.

https://openedx.atlassian.net/browse/EG-43

https://rpm.newrelic.com/accounts/88178/key_transactions/35300/x_rays/4669#id=75ca5033-f190-11e8-8af5-0242ac11000a_36532_39981&tab-detail_75ca5033-f190-11e8-8af5-0242ac11000a_36532_39981=database_queries

BenjiLee avatar Nov 26 '18 16:11 BenjiLee

Closing PR. Looks like my cache isn't working because there is a different cache thats working correctly.

https://github.com/edx/ecommerce/blob/master/ecommerce/extensions/offer/models.py#L63

BenjiLee avatar Nov 27 '18 13:11 BenjiLee

@robrap This PR might still be relevant. I think there's something weird with the current way this caching works today.

BenjiLee avatar Nov 28 '18 16:11 BenjiLee