Moodle

Make the cache check course->modinfo is still valid before using it

Details

  • Type: Sub-task Sub-task
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 2.0
  • Fix Version/s: 2.0
  • Component/s: Libraries
  • Labels:
    None
  • Difficulty:
    Easy
  • Affected Branches:
    MOODLE_20_STABLE
  • Fixed Branches:
    MOODLE_20_STABLE

Description

As Petr and David pointed out the navigation doesn't show newly created activities.
This is because the course modinfo is being cached...
As we agreed it would be a smart idea to compare modinfo to the current $COURSE to ensure
it is still valid and hasn't changed.

Activity

Hide
Sam Hemelryk added a comment -

Done and done, compare command created and modinfo calls to cache switched to use it

Show
Sam Hemelryk added a comment - Done and done, compare command created and modinfo calls to cache switched to use it

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: