Hi All, I'm working on performance and have a few questions:
1. What is the best way to build caching into an application with ESI? For instance, imagine a page with a feed of news stories like Reddit. I think one would want to include each news story item in the feed as an ESI in order to cache them independently. You would most likely need a few different versions of each news story teaser (one for a user that has not voted, one for a user that voted up, and one for a user that voted down). Using validation, there would need to be at least one query for each news story in order to build the etag. If there are 50 news stories per page, that an additional 50 queries per page even with caching. Is there some better way to do this that I'm missing? 2. When building a caching strategy, it's difficult to measure the impact / effectiveness with the symfony profiler. This is because the # of queries does not change to reflect the cached parts of the page. For instance, if a page has 20 queries and I cache the entire page, the profiler will still say there are 20 queries on the page. This is not how symfony 1 worked. Is there any way around this? 3. Is it possible to use the ACL is_granted('PERMISSION', object) Twig extension without a hydrated object? Image the same scenario as #1. There is a feed of news stories. In each news story teaser, twig checks to see if the current user has permission is_granted('EDIT', newsEntity) and if so displays an edit link. I'd rather not use hydrate_object all of the time just so that I can use the permission system. Is there an easier way to do this? Same thing goes for comments for example - if the user has permission delete for the comment I would like to show them a delete button. However hydrating everything as an object instead of an array and calling the is_granted for every comment to check if the user has a permission is very costly. Thanks for all of the help! -- 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 users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en