On 06.06.2011, at 15:51, Fabien Potencier wrote: > On 6/6/11 3:33 PM, Lukas Kahwe Smith wrote: >> Hi, >> >> Many months we made the decision to always call refreshUser() on every >> request. Now this makes sense as a default and obviously when using some >> expensive data source one should consider some sort of caching for this. >> However I think we should provide some simple ways to reduce the number of >> calls to the data source, basically I think we should cover the following >> scenarios >> >> 1) fetch on every request >> this is what we have today >> 2) fetch every X requests >> 3) fetch after Y amount of seconds >> >> For both X and Y we should probably also include some ways to easily set the >> interval dynamically on the first load and subsequent refreshes. >> >> This will imho cover the bulk of what users will need in practice without >> having to make the user implement similar logic in every user provider. > > That's already possible today as you can do whatever you want in the > refreshUser() method.
I wasnt disputing that you can do this today. I am saying we should support this out of the box so that the user just needs to enable the relevant configuration settings. regards, Lukas Kahwe Smith m...@pooteeweet.org -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony developers" group. To post to this group, send email to symfony-devs@googlegroups.com To unsubscribe from this group, send email to symfony-devs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-devs?hl=en