Removed EnterpriseMiddleware

EnterpriseMiddleware set value of user's enterprise customer in session. In order to get value of enterprise customer it calls `enterprise/api/v1/enterprise-learner` API. Sometimes this middleware is called many times which result in many call to the under lying API and throttling of API causes 429 http errors.
We are not removing that middleware and storing value of user's enterprise customer in session inside underlying method.
ENT-1849

Removed pdb statement
This commit is contained in:
Zia Fazal
2019-11-18 19:57:03 +05:00
parent b985e41355
commit e1cb10b41d
5 changed files with 34 additions and 85 deletions

View File

@@ -1510,9 +1510,6 @@ MIDDLEWARE_CLASSES = [
'waffle.middleware.WaffleMiddleware',
# Inserts Enterprise content.
'openedx.features.enterprise_support.middleware.EnterpriseMiddleware',
# Enables force_django_cache_miss functionality for TieredCache.
'edx_django_utils.cache.middleware.TieredCacheMiddleware',