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

Add the option to switch the serializer to igbinary in Redis cache store

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Install phpredis with --enable-redis-igbinary like the one from Dotdep
      Install the PHP igbinary module.
      Go to Site administration -> Plugins -> Caching -> Configuration
      Select Redis store -> Edit Store
      If the phpredis module is compiled against igbinary the select box "Use serializer " should have two available options:
      "The default PHP serializer."
      "The igbinary serializer."
      Select "The igbinary serializer."
      Perform some exploratory testing, making redis the default application and session store. Then visiting pages, purging caches... changing redis instance key prefix, everything should continue working ok with the igbinary serializer in action.

      Note: Do a Redis database flush/restart (or change the prefix) before switching of serializer. This will be documented.

      Show
      Install phpredis with --enable-redis-igbinary like the one from Dotdep Install the PHP igbinary module. Go to Site administration -> Plugins -> Caching -> Configuration Select Redis store -> Edit Store If the phpredis module is compiled against igbinary the select box "Use serializer " should have two available options: "The default PHP serializer." "The igbinary serializer." Select "The igbinary serializer." Perform some exploratory testing, making redis the default application and session store. Then visiting pages, purging caches... changing redis instance key prefix, everything should continue working ok with the igbinary serializer in action. Note: Do a Redis database flush/restart (or change the prefix) before switching of serializer. This will be documented.
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57572-master

      Description

      Hi,

      As part of our migration to Moodle 3.2 we also switched our caching backend from memcached to Redis.
      Since phpredis also supports the use of the igbinary serializer I think this should be configurable for the Moodle Redis cache store implementation.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/17