Welcome Guest, Not a member yet? Register   Sign In
redis driver _get_lock set lock_key problem
#10

(09-11-2018, 12:18 PM)spjonez Wrote: There's a few things you can do to reduce this, they won't fix it completely but it will help.

1) Upgrade to the latest versions of Redis and phpredis.
2) Call session_write_close() in every request as soon as you're done writing session data. You can still read session data after you call this just not write it.

Newer versions of phpredis seem to show this message less frequently. There's quite a few threads on here about it and I don't think anyone's definitively figured out what the cause is.

Thanks @spjonez. I've updated Redis and php redis and am not really seeing any change.

Been reading about the additional options available for session_start in PHP 7 on https://ma.ttias.be/php-session-locking-...-requests/

Specifically:

Code:
session_start([
   'read_and_close' => true,
]);

Is that something to try or am I completely on the wrong track?
Reply


Messages In This Thread
RE: redis driver _get_lock set lock_key problem - by jimpannell - 09-12-2018, 09:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB