The problem ended up being the order of routes in routes.rb.
On Feb 17, 2:56 am, bacon <egg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hello,
>
> I''m running rails 2.0.2 and mongrel 1.1.3, trying to get caching
> working with multiple parameters. I found sites that pointed out you
> need to make sure the parameters are part of the URL, so I have built
> routes to achieve this.
>
> Cached fragment: localhost:3000/reports/meetings_monthly/2 (0.00141)
> Completed in 0.16703 (5 reqs/sec) | Rendering: 0.05980 (35%) | DB:
> 0.01709 (10%) | 200 OK [http://localhost/reports/meetings_monthly/
> 2/2008-03-17]
>
> So, why is it that the URL includes the date, which is correct, but
> the cache does not? When I change the date, I get the same cached
> page.
>
> Any help would be appreciated, I don''t know where to begin and as
far
> as I can tell I''m doing this correctly. In the reports
controller, I
> have:
>
> caches_action :meetings_monthly, :quarterly_time_by_person, :tracker,
:presales,
> :accounting_new, :accounting_stalled,
:accounting_hibernating, :accounting_forecast,
> :accounting_billed, :accounting_future
>
> Thanks,
> -Jason
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---