Skip to content

User provider cache overrides repository cache #485

@boccoadam

Description

@boccoadam

Checklist

Description

When updating fields on a user, I forget the cache key for the user cached for 30 seconds in the user repository. However, the user is still cached for 5 seconds due to the caching in Auth0\Laravel\UserProviderAbstract::retrieveByCredentials(). I don't understand why this was added or if there is a way to override it without just using a custom provider. I feel like this defeats the purpose of caching the user in the repository, shouldn't this just be limited to credentials and not other user data?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions