MDL-38565 cache: session caches now function as expected

This change is a large change to the way sessions are handled
within MUC after it was discovered that session did not function
as expected when any store other than the default session store
was being used.
As part of this change the session loader has been largely
customised in order to consolidate session data for the loader.
The unit tests have also being greatly increased to provide
better coverage for sessions.
This commit is contained in:
Sam Hemelryk
2013-04-19 10:11:48 +12:00
parent 3a8c4380c0
commit dbd2ea4e1f
14 changed files with 1014 additions and 29 deletions
+1 -1
View File
@@ -200,7 +200,7 @@ class cache_mode_mappings_form extends moodleform {
);
foreach ($stores as $storename => $store) {
foreach ($store['modes'] as $mode => $enabled) {
if ($enabled) {
if ($enabled && ($mode !== cache_store::MODE_SESSION || $store['supports']['searchable'])) {
if (empty($store['default'])) {
$options[$mode][$storename] = $store['name'];
} else {