Skip to content

Commit

Permalink
MDL-67020 Cache: Increment cacherev when purging course cache
Browse files Browse the repository at this point in the history
  • Loading branch information
marxjohnson committed Oct 19, 2022
1 parent c06fc06 commit dcc7d7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/modinfolib.php
Expand Up @@ -970,6 +970,7 @@ public static function get_array_of_activities(stdClass $course, bool $usecache
* @param int $courseid Course id
*/
public static function purge_course_cache(int $courseid): void {
increment_revision_number('course', 'cacherev', 'id = :id', array('id' => $courseid));
$cachemodinfo = cache::make('core', 'coursemodinfo');
$cachemodinfo->delete($courseid);
}
Expand Down

0 comments on commit dcc7d7b

Please sign in to comment.