Skip to content

Commit

Permalink
MBS-8702: Move mtrace to task
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-csg committed Feb 19, 2024
1 parent c4b94f1 commit 34fe9b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions classes/cachemanager.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ public static function build_backlink_cache(int $courseid = 0) {
$backlinks = [];
$cache = \cache::make('mod_learningmap', 'backlinks');

mtrace('Building backlink cache' . (!empty($courseid) ? ' for course ' . $courseid : '') . ' started...');

$conditions = ['backlink' => 1];
if (!empty($courseid)) {
$conditions['course'] = $courseid;
Expand Down Expand Up @@ -88,8 +86,6 @@ public static function build_backlink_cache(int $courseid = 0) {
if (empty($courseid)) {
$cache->set('fillstate', time());
}

mtrace('Building backlink cache finished.');
}

/**
Expand Down
2 changes: 2 additions & 0 deletions classes/task/fill_backlink_cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public function execute() {
return;
}

mtrace('Building backlink cache started...');
cachemanager::build_backlink_cache();
mtrace('Building backlink cache finished.');
}
}

0 comments on commit 34fe9b7

Please sign in to comment.