Move request_cache to openedx.core.djangoapps

This commit is contained in:
Qubad786
2018-01-26 03:30:54 +05:00
parent 7a552f7446
commit 64555c60c0
57 changed files with 77 additions and 86 deletions

View File

@@ -5,7 +5,7 @@ to configure flags related to persistent grading.
from contextlib import contextmanager
from contentstore.config.models import NewAssetsPageFlag, CourseNewAssetsPageFlag
from request_cache.middleware import RequestCache
from openedx.core.djangoapps.request_cache.middleware import RequestCache
@contextmanager

View File

@@ -9,7 +9,7 @@ from config_models.models import ConfigurationModel
from django.db.models import TextField
from openedx.core.djangoapps.xmodule_django.models import CourseKeyField
from request_cache.middleware import request_cached
from openedx.core.djangoapps.request_cache.middleware import request_cached
class StudioConfig(ConfigurationModel):

View File

@@ -7,7 +7,7 @@ import ddt
from django.test import TestCase
from opaque_keys.edx.locator import CourseLocator
from request_cache.middleware import RequestCache
from openedx.core.djangoapps.request_cache.middleware import RequestCache
from xblock_config.models import CourseEditLTIFieldsEnabledFlag

View File

@@ -457,7 +457,7 @@ else:
MIDDLEWARE_CLASSES = [
'crum.CurrentRequestUserMiddleware',
'request_cache.middleware.RequestCache',
'openedx.core.djangoapps.request_cache.middleware.RequestCache',
'openedx.core.djangoapps.monitoring_utils.middleware.MonitoringMemoryMiddleware',