Skip to content

Session cache being deleted too often #6726

Open
@SebC99

Description

@SebC99

Issue Description

When we monitor our calls to the redis cache, we can see that the user session is regularly missed even (sometimes every minutes, sometimes after 5 or 10 minutes) with a TTL of one hour.

It's hard to figure out why, but this line could be a (small) part of the explanation.

Instead of just removing all keys (of all sessionTokens) of that user, wouldn't it be possible to refresh them with the updated user?

It's clearly not the only reason, as when investigating we see cache misses for a sessionToken even with the user not being updated (no change in the updatedAt field), but it's the only reason we've figured for now...

If you have other ideas, I would be happy to test them :)

Server version: 4.2.0 on AWS Elasticbeanstalk (or local)
Database : MongoDB on Mongo Atlas

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions