]> git.mjollnir.org Git - moodle.git/commit
rcache_* calls - flesh out logic and use $MCACHE if available
authormartinlanghoff <martinlanghoff>
Wed, 27 Dec 2006 22:40:38 +0000 (22:40 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 27 Dec 2006 22:40:38 +0000 (22:40 +0000)
commitc96a4a46d5a962562404098847bc5bf38528653c
tree858c630a308a652cf0e14c503d52322af724b3a6
parentcd60d017ea7ed7b01c7c67373df5f24542ac9516
rcache_* calls - flesh out logic and use $MCACHE if available

 - move from $CFG->enablerecordcache <count> to $CFG->rcache <type>

 - if $CFG->rcache === 'internal' use the cache array
   otherwise, attempt to use $MCACHE

 - implement and use rcache_getforfill() to catch thundering herds

 - the cache lifetime is hardcoded to 2s until we understand better the
   possible race conditions against updates that are not happening via
   update_record() / delete_record()
lib/dmllib.php