Commit 1a66ae36 by Robert Raposa

Fix caching of course_outline_root_block.

LEARNER-2819
parent 112938e4
......@@ -5,11 +5,11 @@ from opaque_keys.edx.keys import CourseKey
from lms.djangoapps.course_api.blocks.api import get_blocks
from lms.djangoapps.course_blocks.utils import get_student_module_as_dict
from openedx.core.lib.cache_utils import memoized
from request_cache.middleware import request_cached
from xmodule.modulestore.django import modulestore
@memoized
@request_cached
def get_course_outline_block_tree(request, course_id):
"""
Returns the root block of the course outline, with children as blocks.
......
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