FriendsOfSymfony / FOSUserBundle

Provides user management for your Symfony project. Compatible with Doctrine ORM & ODM, and custom storages.
https://symfony.com/doc/master/bundles/FOSUserBundle/index.html
MIT License
3.25k stars 1.57k forks source link

help in cache management #66

Open lsmith77 opened 13 years ago

lsmith77 commented 13 years ago

Symfony2 reads the user from the database on every request. wondering if we can help users here by implementing cache strategies or something like that.

winzou commented 13 years ago

Is this enhancement planned yet? What are the options: Doctrine cache, session, other?

lsmith77 commented 13 years ago

Nothing is planned yet. Doctrine cache config should probably cover the "issue" outside of the Bundle. What I was more thinking about was a way to configure a time interval (including disabling entirely) of how often the data should be re-read.

stof commented 13 years ago

The point also is that reading the user from the token without reloading it means that the user instance is not managed by the Doctrine entity manager and that it needs to be merged in the UnitOfWork when doing a change (which triggers a query)

cursedcoder commented 13 years ago

I support this issue, now are there any solutions?

arkmuay commented 8 years ago

Up ? :dancers:

stayeronglass commented 8 years ago

+1