Maybe I'm missing something, but: 1) Cleans the URL and then shows the page, but then I lose all the analytics data: suppose I want to track a marketing campaign. 2) I'm using a template cache, so I can't specify a cache key.
Is there any other solution? On Jul 5, 4:10 pm, pghoratiu <[email protected]> wrote: > You have 2 options: > 1. Change in mod_rewrite to filter out the extra query elements that > pollute the query string > 2. Set up explicitly the sf_cache_key when including a partial - in > your case tthe sf_cache_key would be the id. > > gabriel > > On Jul 5, 4:26 pm, illarra <[email protected]> wrote: > > > > > Hi > > > Is there a way of having an unique cache regardless of the extra > > parameters added to a route (like Google Analytics)? > > > Let's say I have a route @view?id=13 that results in the > > URLhttp://example.com/post/13 > > When I go to the URLhttp://example.com/post/13?utm_campaign=x&utm_medium=y > > the cached route by symfony is: @view? > > id=13&utm_campaign=x&utm_medium=y > > > And that creates different entries in the cache for the very same > > page, because this parameters are just used via javascript. > > I would like only one cache per view: @view?id=13. Can I change this > > behavior? > > > Thanks a lot. -- 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
