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

    • MOODLE_32_STABLE, MOODLE_33_STABLE
    • MOODLE_33_STABLE
    • MDL-57572-master
    • 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.

    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

              mwehr Mario Wehr
              mwehr Mario Wehr
              Matteo Scaramuccia Matteo Scaramuccia
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Rajesh Taneja Rajesh Taneja
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                15/May/17