Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-46142

memcache store doesn't serialise data

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a bug
    • Icon: Minor Minor
    • None
    • 2.6.3, 2.7
    • Caching
    • None
    • 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.

            maherne Michael Aherne
            maherne Michael Aherne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.