Commit 0e8af4cc by Calen Pennington

Use the non-deprecated functions for edxmako to access the request_cache

parent 25c43981
...@@ -26,7 +26,7 @@ from django.utils.module_loading import import_string ...@@ -26,7 +26,7 @@ from django.utils.module_loading import import_string
from util.request import safe_get_host from util.request import safe_get_host
from crum import get_current_request from crum import get_current_request
from request_cache import get_request_cache import request_cache
def get_template_context_processors(): def get_template_context_processors():
...@@ -44,7 +44,7 @@ def get_template_request_context(): ...@@ -44,7 +44,7 @@ def get_template_request_context():
or returns None if there is not a current request. or returns None if there is not a current request.
""" """
request_cache_dict = get_request_cache('edxmako') request_cache_dict = request_cache.get_cache('edxmako')
cache_key = "request_context" cache_key = "request_context"
if cache_key in request_cache_dict: if cache_key in request_cache_dict:
return request_cache_dict[cache_key] return request_cache_dict[cache_key]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment