My suggestion is to use Apache rewrite and filter out the arguments that may interfere with the caching (if you don't need them). If you still need them in the application you would have to go into the symfony core to make changes, probably a symfony dev could tell more about where to make this change.
On Sep 8, 11:47 am, Stephen Melrose <[email protected]> wrote: > Hi Eno, > > Thanks for your reply. > > I have to disagree with you I'm afraid. Everywhere I read states that > when a query string (non Symfony formatted) is appended to the URL, > the caching system is disabled, e.g. this line from the Practical > Symfony book, > > "Instead of clearing the cache each time you make a change, you can > also disable the cache by adding any query string to the > URL,"http://www.symfony-project.org/jobeet/1_2/Propel/en/22#chapter_22_cle... > > If however you append a Symfony formatted query string, it caches > fine, with the query string too, e.g. > > http://example.com/my/url.html/some/param > > I suppose my question is then, how can I make the cache for /my/ > url.html ignore the query /some/param, or any other query, and just > cache the page only? > > Thanks, > > Steve > > On 7 Sep, 17:19, Eno <[email protected]> wrote: > > > On Mon, 7 Sep 2009, Stephen Melrose wrote: > > > From my understanding, the minute you pass a query string on the end > > > of a URL, the caching system is disabled. > > > Nope, that's not true. Assuming you're caching the action, then all URLs > > with the samy query string will be cached after the first request. > > > > However, I need to cache a page with a query string passed to it. The > > > query string is 100% irrelevant and is simply used to force a download > > > in Flash. > > > > So, my question is how do I do this? I just need to cache the page, > > > but ignore the query string as if it weren't there. > > > If the query string is always the same then it should be cached. > > > -- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
