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

    • 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.
    • Affected Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57570-master

      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

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

                Dates

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