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

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

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57570-master
    • Testing Instructions:
      Hide

      Install the PHP igbinary module.
      Enable the igbinary extension in the php igbinary extension config.
      The static cache should use the igbinary_un/serialize functions.
      Executing vendor/bin/phpunit cachestore_static_test cache/stores/static/tests/static_test.php should lead to 74 assertions passed.

      Disable the igbinary extension in the php igbinary extension config.
      The static cache should use the PHP un/serialize functions.
      Executing vendor/bin/phpunit cachestore_static_test cache/stores/static/tests/static_test.php should lead to 1 skipped unit test.

      Show
      Install the PHP igbinary module. Enable the igbinary extension in the php igbinary extension config. The static cache should use the igbinary_un/serialize functions. Executing vendor/bin/phpunit cachestore_static_test cache/stores/static/tests/static_test.php should lead to 74 assertions passed. Disable the igbinary extension in the php igbinary extension config. The static cache should use the PHP un/serialize functions. Executing vendor/bin/phpunit cachestore_static_test cache/stores/static/tests/static_test.php should lead to 1 skipped unit test.

      Description

      Hi,

      I think the option to use the igbinary serializer in the static cache store would be a handy feature to reduce the memory footprint when processing requests .
      According to some quick tests the average cache size could be reduced by 40% - 50%.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mwehr Mario Wehr
              Reporter:
              mwehr Mario Wehr
              Peer reviewer:
              Matteo Scaramuccia Matteo Scaramuccia
              Integrator:
              Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
              Tester:
              Rajesh Taneja Rajesh Taneja
              Participants:
              Component watchers:
              Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona), Matteo Scaramuccia, Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

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