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

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

XMLWordPrintable

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

      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%.

            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:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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