Merge branch '37145-26' of git://github.com/samhemelryk/moodle into MOODLE_26_STABLE

This commit is contained in:
Damyon Wiese 2014-06-23 14:40:33 +08:00
commit 3f3ecc0311
2 changed files with 9 additions and 0 deletions

4
cache/README.md vendored
View file

@ -246,3 +246,7 @@ The following snippet illustates how to configure the three core cache stores th
define('TEST_CACHESTORE_MEMCACHE_TESTSERVERS', '127.0.0.1:11211'); define('TEST_CACHESTORE_MEMCACHE_TESTSERVERS', '127.0.0.1:11211');
define('TEST_CACHESTORE_MEMCACHED_TESTSERVERS', '127.0.0.1:11211'); define('TEST_CACHESTORE_MEMCACHED_TESTSERVERS', '127.0.0.1:11211');
define('TEST_CACHESTORE_MONGODB_TESTSERVER', 'mongodb://localhost:27017'); define('TEST_CACHESTORE_MONGODB_TESTSERVER', 'mongodb://localhost:27017');
Please be aware that if you are using Memcache or Memcached it is recommended to use dedicated Memcached servers.
When caches get purged the memcached servers you have configured get purged, any data stored within them whether it belongs to Moodle or not will be removed.
If you are using Memcached for sessions as well as caching/testing and caches get purged your sessions will be removed prematurely and users will be need to start again.

View file

@ -240,6 +240,11 @@ $CFG->admin = 'admin';
// $CFG->session_memcached_acquire_lock_timeout = 120; // $CFG->session_memcached_acquire_lock_timeout = 120;
// $CFG->session_memcached_lock_expire = 7200; // Ignored if memcached extension <= 2.1.0 // $CFG->session_memcached_lock_expire = 7200; // Ignored if memcached extension <= 2.1.0
// //
// Please be aware that when selecting either Memcached or Memcache for sessions that it is advised to use a dedicated
// memcache server. The memcache and memcached extensions do not provide isolated environments for individual uses.
// Using the same server for other purposes (MUC for example) can lead to sessions being prematurely removed should
// the other uses of the server purge the cache.
//
// Following setting allows you to alter how frequently is timemodified updated in sessions table. // Following setting allows you to alter how frequently is timemodified updated in sessions table.
// $CFG->session_update_timemodified_frequency = 20; // In seconds. // $CFG->session_update_timemodified_frequency = 20; // In seconds.
// //