- Issue created by @id.aleks
- Merge request !183425407: Added user context to the H5PDefaultFormatter render array. β (Open) created by id.aleks
- Status changed to Needs review
over 1 year ago 12:34pm 4 March 2024 - πΊπ¦Ukraine id.aleks
I have opened the MR https://git.drupalcode.org/project/h5p/-/merge_requests/18. Also attaching the fix as a patch. Please review.
- Status changed to Needs work
over 1 year ago 10:29am 27 March 2024 - π¬π§United Kingdom catch
This makes sense, but it should only add this cache context if 'save content state' is enabled I think - then when it's not enabled, there would still be a higher cache hit rate.
- Status changed to Needs review
over 1 year ago 12:09pm 7 April 2024 - πΊπ¦Ukraine id.aleks
Hello @catch, thank you for checking this. I agree with your opinion. I have pushed new changes to the MR and also added a new patch to this comment. Please review.
- πΊπΈUnited States illeace
Patch #5 no longer applies to 2.0.x-dev so created a new patch file off the latest dev code. @id.aleks - please take a look and make sure I didn't miss anything.
I have used similar steps to the ones you suggest for testing, and in my tests can confirm that the patch resolves the issue of showing a different user with the same role's cached progress. I also confirmed that the additional user context is only added when the
Save content state option
option is enabled.