mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
fixed nocache option in format_text()
This commit is contained in:
parent
0a1361f61f
commit
f47f4659de
@ -1365,7 +1365,8 @@ function format_text($text, $format=FORMAT_MOODLE, $options=NULL, $courseid=NULL
|
||||
break;
|
||||
}
|
||||
|
||||
if (!empty($CFG->cachetext) and $CFG->currenttextiscacheable) {
|
||||
if (empty($options->nocache) and !empty($CFG->cachetext) and $CFG->currenttextiscacheable) {
|
||||
$newcacheitem = new object();
|
||||
$newcacheitem->md5key = $md5key;
|
||||
$newcacheitem->formattedtext = addslashes($text);
|
||||
$newcacheitem->timemodified = time();
|
||||
|
Loading…
x
Reference in New Issue
Block a user