MDL-36466 cache: tidy up after review

This commit is contained in:
Sam Hemelryk
2012-11-26 08:12:00 +13:00
parent 3308259062
commit 94ef67cf5f
10 changed files with 76 additions and 26 deletions
+3 -3
View File
@@ -127,6 +127,9 @@ if (function_exists('date_default_timezone_set') and function_exists('date_defau
/** Used by library scripts to check they are being called by Moodle */
define('MOODLE_INTERNAL', true);
// Disables caching.. just in case.
define('CACHE_DISABLE_ALL', true);
// Check that PHP is of a sufficient version
if (version_compare(phpversion(), "5.3.2") < 0) {
$phpversion = phpversion();
@@ -169,9 +172,6 @@ require_once($CFG->dirroot.'/cache/lib.php');
require($CFG->dirroot.'/version.php');
$CFG->target_release = $release;
// Disable the cache API.
cache_factory::disable();
//Database types
$databases = array('mysqli' => moodle_database::get_driver_instance('mysqli', 'native'),
'pgsql' => moodle_database::get_driver_instance('pgsql', 'native'),