FOSUserBundle icon indicating copy to clipboard operation
FOSUserBundle copied to clipboard

help in cache management

Open lsmith77 opened this issue 14 years ago • 6 comments
trafficstars

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.

lsmith77 avatar Feb 26 '11 09:02 lsmith77

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

winzou avatar May 09 '11 02:05 winzou

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.

lsmith77 avatar May 09 '11 05:05 lsmith77

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)

stof avatar May 09 '11 10:05 stof

I support this issue, now are there any solutions?

cursedcoder avatar Aug 15 '11 13:08 cursedcoder

Up ? :dancers:

arkmuay avatar Jan 28 '16 14:01 arkmuay

+1

stayeronglass avatar May 26 '16 12:05 stayeronglass