MDL-41910 user: Allowing LASTACCESS_UPDATE_SECS overwrite

This commit is contained in:
David Monllao
2013-09-23 16:58:56 +08:00
parent 83f26f6407
commit 0793389fd6
+6 -1
View File
@@ -42,8 +42,13 @@ define('MAX_COURSE_CATEGORIES', 10000);
/**
* Number of seconds to wait before updating lastaccess information in DB.
*
* We allow overwrites from config.php, useful to ensure coherence in performance
* tests results.
*/
define('LASTACCESS_UPDATE_SECS', 60);
if (!defined('LASTACCESS_UPDATE_SECS')) {
define('LASTACCESS_UPDATE_SECS', 60);
}
/**
* Returns $user object of the main admin user