Memory leak in Course Experience feature

Description

The @memoized decorator on get_course_outline_block_tree is most likely causing a memory leak. This decorator caches the value throughout the lifetime of the edxapp instance. It's not cached just for a particular request. Also, since the request object is passed in, it will create a new cache entry for each request.

I don't believe the memoized decorator is what you want here. Please see its docstring.

Steps to Reproduce

None

Current Behavior

None

Expected Behavior

None

Reason for Variance

None

Release Notes

None

User Impact Summary

None

Status

Assignee

Robert Raposa

Reporter

Nimisha Asthagiri

Labels

Reach

None

Impact

None

Platform Area

None

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Category of Work

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Story Points

1

Sprint

None

Priority

Unset
Configure