Skip to content

🚑 Count of active Redis sessions: filter only array-type values#44

Open
jdirciog wants to merge 1 commit into
vcian:mainfrom
jdirciog:fix-count-active-redis-sessions
Open

🚑 Count of active Redis sessions: filter only array-type values#44
jdirciog wants to merge 1 commit into
vcian:mainfrom
jdirciog:fix-count-active-redis-sessions

Conversation

@jdirciog
Copy link
Copy Markdown

Environment

  • WSL with Ubuntu 24.04.2 LTS
  • Laravel 12
  • PHP v8.3.11
  • Laravel pulse v1.4.2
  • MySQL 8.4
  • Redis 7.4

Bug

Redis sessions are not being counted because the code in the "countActiveRedisSession" function stops when the "sessionData" array contains boolean values.

Fix

I've added a filter on the "sessionData" array to ensure the values ​​are of array type:

image


Esto permite continuar con el conteo de las sesiones activas en redis 🤓

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant