MDL-38541 Make sure course cache is cleared properly during upgrade
authorMarina Glancy <marina@moodle.com>
Tue, 9 Apr 2013 01:09:47 +0000 (11:09 +1000)
committerMarina Glancy <marina@moodle.com>
Tue, 9 Apr 2013 01:31:18 +0000 (11:31 +1000)
commit4202471a360703cf89cea0d4adc68a947d5e4fd5
tree2a5421efc9142561e8de08de17ac05575288ed09
parent422f68fb869465fa162a282c27a02b4aaecd3ea6
MDL-38541 Make sure course cache is cleared properly during upgrade

- Core upgrade MUST NOT call rebuild_course_cache() at all - update DB directly instead
- Plugins MUST call rebuild_course_cache(.., TRUE) for clearing the course cache and can not update DB directly
- Plugins MUST NOT call rebuild_course_cache() unless for clearing the cache
- Created function upgrade_ensure_not_running() to be included in other functions that can not be used during upgrade
lang/en/error.php
lib/db/upgrade.php
lib/modinfolib.php
lib/setuplib.php
mod/label/db/upgrade.php