pfortin/magento2-session-unblocker

Module for Magento 2 that prevents session blocking between concurrent AJAX requests

v0.1.8 2019-06-14 01:43 UTC

README

![Software License][ico-license] [![Build Status][ico-travis]][link-travis] [![Coverage Status][ico-scrutinizer]][link-scrutinizer] [![Quality Score][ico-code-quality]][link-code-quality]

This extension improves the performance of AJAX requests in Magento by reducing session locking, without having to disable locking in the cache backend (e.g. Redis)

Session locking keeps safe from race conditions from parallel requests, so disabling it completely can result in session data loss.

Instead we minimize the lock time by closing the session as soon as we have read it, if we do not need to write to it anymore.

Installation

  1. Install via composer
    composer require pfortin/magento2-session-unblocker
    
  2. Enable module
    bin/magento setup:upgrade
    

Configuration

Zero configuration needed.