-
Bug
-
Resolution: Not a bug
-
Minor
-
None
-
2.6.3, 2.7
-
None
-
PHP memcache module version 2.2.4, Memcached server VERSION 1.4.4,
Linux version 2.6.32-358.18.1.el6.x86_64 (mockbuild@x86-003.build.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Fri Aug 2 17:04:38 EDT 2013
-
MOODLE_26_STABLE, MOODLE_27_STABLE
We're seeing an issue where Moodle is caching boolean data, which works perfectly well on file, memcached and mongodb caches, but not on the memcache one.
The line of code is https://github.com/moodle/moodle/blob/master/lib/weblib.php#L1729, which is setting a boolean true, and checking it's identically equal to boolean true when it comes back, but the memcache store is returning it as an integer 1. The manifestation of the issue is that strings unchanged by HTML purifier are all returned as "1".
It seems that all the other core cache stores are serialising the PHP data one way or another, but memcache isn't.
- has been marked as being related by
-
MDL-46151 Text being replaced with "1"
- Closed