edx-platform
edx-platform copied to clipboard
fix: reduce cache timeot value to comply with usecase
Description
This PR reduces the default timeout value for caching of the users count on gradebook to 10 minutes, and also drops a cache key on enrollment status change, so the actual count of enrolled users on the course will be displayed.
Supporting information
The cached value can be seen on the gradebook page in gradebook MFE:
Testing instructions
- Open Gradebook for a specific course, try to create several filtered views
- Enroll several new users into the course
- Open Gradebook page once again, the number of total users enrolled into the course should be updated, newly enrolled users appear in the paginated list of users
Other information
The original PR that was removing cache completely to overcome this issue - https://github.com/openedx/edx-platform/pull/33617.