On Mon, 5 Jul 2010, illarra wrote:

> 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 URL
> http://example.com/post/13
> When I go to the URL http://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?

You need to explicitly set the cache key.



-- 


-- 
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

Reply via email to