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

(This post was last modified: 09-12-2018, 12:18 PM by spjonez.)

(09-12-2018, 09:02 AM)jimpannell Wrote:
   'read_and_close' => true,

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

If you never intend on writing any session data that would work. Chances are that's not what you want. For the route that you're pinging every 1s go to the controller method and add session_write_close(); after the last session write. Reads can be below this but no other writes can be. That will free the lock before execution ends once all your writes are complete. If that route doesn't write any session data put the close at the very top of the method (assuming you're autoloading the session driver). Generally you're going to want to manually close the session everywhere once writes are done especially in routes you AJAX to.

This is noted in the users guide: https://www.codeigniter.com/user_guide/l...oncurrency

Messages In This Thread
RE: redis driver _get_lock set lock_key problem - by spjonez - 09-12-2018, 12:16 PM

Theme © iAndrew 2016 - Forum software by © MyBB