From: martinlanghoff Date: Wed, 27 Dec 2006 22:45:47 +0000 (+0000) Subject: rcache_set() and rcache_table_unset(): use a configurable TTL X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ec9fe5cf6f18017934bd50f7c3202e52d36842f8;p=moodle.git rcache_set() and rcache_table_unset(): use a configurable TTL --- diff --git a/lib/dmllib.php b/lib/dmllib.php index d71b62ca0d..759bc84acd 100644 --- a/lib/dmllib.php +++ b/lib/dmllib.php @@ -2097,7 +2097,7 @@ function rcache_set($table, $id, $rec) { // when an UPDATE or DELETE not bound by ID // is taking place if (!$MCACHE->get($tablekey)) { - $MCACHE->set($reckey, $rec, false, 2); + $MCACHE->set($reckey, $rec, false, $CFG->rcachettl); $MCACHE->delete($reckey . '_fill'); // release lock } } @@ -2308,7 +2308,7 @@ function rcache_unset_table ($table) { $table)); // at least as long as content keys to ensure they expire // before the dirty flag - $MCACHE->set($tablekey, true, false, 2); + $MCACHE->set($tablekey, true, false, $CFG->rcachettl); } return true; }