Symfony 2 Security: keeps reloading data from user provider?

Viewed 4545

When a user is already logged in, the Security component keeps reloading data from the user provider on every reqyest. Is there a way to avoid this? When your user provider is not in a local database, for example, in a webservice, this can dramatically slow down the system.

On every request i get this:

[2012-08-15 20:07:30] security.DEBUG: Read SecurityContext from the session [] []
[2012-08-15 20:07:30] security.DEBUG: Reloading user from user provider. [] []
1 Answers
Related