mirror of
https://github.com/wavelog/wavelog
synced 2026-08-13 18:41:16 -04:00
In ancient times redis wasn't able to tell the client that a lock was released so the origin CI3 redis driver had to poll with sleep(1) to wait for the lock to be released. This produced a staircase of 1s/2s/3s delays for parallel AJAX requests of the same user. While I reduced this polling to 100ms, it still slows down the user experience. This new redis2 driver uses BLPOP to wait for the lock to be released, so serialized AJAX requests of the same user are no longer delayed. All modern redis or valkey servers support BLPOP, so this driver should be used instead of the original redis driver. |
||
|---|---|---|
| .. | ||
| config.php | ||
| database.php | ||