You have to make the difference between the GET parameters that are
(automatically) transformed by the symfony routing system, and those don't
deactivate the cache, and the ones that are (manually) added as a query
string, and then cache is deactivated.
link_to('click me', 'foo/bar?key1=value1&key2=value3')
=> foo/bar/key1/value1/key2/value2
=> caching works
link_to('click me', 'foo/bar?key1=value1', array('query_string' =>
'key2=value3'))
=> foo/bar/key1/value1?key2=value2
=> caching is deactivated
François
2007/9/6, Jiang Le <[EMAIL PROTECTED]>:
>
>
> Hi,
>
> I'm reading chapter 12 of the book 'The Definitive Guide to symfony' .
> And I am quite unsure about this caution in the chatper:
>
> Actions called with a POST method or with GET parameters are not
> cached
>
> I know that POST method calls are not cached but why actions with GET
> parameters are not cached? In the same chapter they've just mentioned
> "Now, every call to the user/show action with a different id argument
> creates a new record in the cache".
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---