Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-43331

Completion Cache can be missing updates



    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Deferred
    • Affects Version/s: 2.5.3
    • Fix Version/s: None
    • Component/s: Activity completion
    • Labels:
    • Affected Branches:


      When a user or process other than the current user session updates the completion information for a logged in user, that information will not be presented to the user until the cache expires or they logout and log back in.

      LTI is an example of this;

      • You set LTI view and grade completion.
      • Step through the LTI item and it will call a webservice to moodle to mark the completion information.
      • The web services uses a different SESSION than the currently logged in user. As a result the cache is not updated even though the grade_update will look to see if it should update the cache.

      The LTI case can be generalized to any process that is outside the users sessions that updates the completion data.

      The only solution I can see as a viable option is to move this to an application cache across the entire of Moodle using MUC. That way the cache can be updated from any session and it can be long lived. I do not however understand the benefit of the cache and what performance issues it's solving.


          Issue Links



              • Assignee:
                mr-russ Russell Smith
                mr-russ Russell Smith
                Component watchers:
                Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                1 Vote for this issue
                5 Start watching this issue


                • Created: