Fix caching of course_outline_root_block.

LEARNER-2819
This commit is contained in:
Robert Raposa
2017-10-13 10:07:04 -04:00
parent 112938e4ac
commit 1a66ae368a

View File

@@ -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.