-
Bug
-
Resolution: Cannot Reproduce
-
Blocker
-
None
-
2.5.2
-
MOODLE_25_STABLE
-
MDL-42014-master -
-
20
-
BACKEND Sprint 6
Finally we were able to reproduce the caches problem that was reported in MDL-41942
After the upgrade to 2.5.2 in datadir/muc/config.php the value
$configuration['stores']['default_session']['features'] = 6;
|
If you install the same version or just remove muc/config.php and let it to re-generate the value becomes 14.
With this configuration and 2.5.2 code the session caches do not work at all - consecutive set() and get() inside the same request return false.
To reproduce on dev sites just edit datadir/muc/config.php and substitute features value to 6.
IMHO there are two problems here:
- config.php is not regenerated during upgrade
- difference 8 means 'IS_SEARCHABLE' which should not affect function get() anyway
test script:
<?php
|
|
include "config.php";
|
|
$coursecatcache = cache::make('core', 'coursecat');
|
$key = uniqid('-randomkey-');
|
$coursecatcache->set($key, 'Test value');
|
$value = $coursecatcache->get($key);
|
echo 'core/coursecat : ';
|
echo ($value === false) ? 'FAILED' : 'OK';
|
|
$cache = cache::make_from_params(cache_store::MODE_SESSION, 'testing', 'sessioncachetest');
|
$key = uniqid('-randomkey-');
|
$cache->set($key, 'Test value');
|
$value = $cache->get($key);
|
echo '; test session cache : ';
|
echo ($value === false) ? 'FAILED' : 'OK';
|
- Testing discovered
-
MDL-41942 Courses in categories invisible
-
- Closed
-