edx-platform icon indicating copy to clipboard operation
edx-platform copied to clipboard

fix: reduce cache timeot value to comply with usecase

Open GlugovGrGlib opened this issue 10 months ago • 2 comments

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: image

Testing instructions

  1. Open Gradebook for a specific course, try to create several filtered views
  2. Enroll several new users into the course
  3. 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.

GlugovGrGlib avatar Apr 23 '24 21:04 GlugovGrGlib