Unset rcahe on UPDATE statements not using dmllib.php. MDL-14257

This commit is contained in:
stronk7
2008-04-08 23:12:08 +00:00
parent 6aba72e06f
commit 5c978acd07
+5
View File
@@ -1941,6 +1941,11 @@ function add_to_log($courseid, $module, $action, $url='', $info='', $cm=0, $user
if (!$res) {
debugging('<p>Error: Could not insert a new entry to the Moodle log</p>'); // Don't throw an error
}
/// Remove this record from record cache since it will change
if (!empty($CFG->rcache)) {
rcache_unset('user', $userid);
}
if ($courseid != SITEID && !empty($courseid)) {
if (defined('MDL_PERFDB')) { global $PERF ; $PERF->dbqueries++;};