Another case where action caching is broken is when you specify :cache_path
explicitly as string:
  caches_action :show, :cache_path => 'http://test.host/custom/show'

We're using this to cache expensive XML documents and after cache hits,
they're being served as text/html.

Ticket with patch:
http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1585-action-caching-sets-wrong-content-type-when-cache_path-is-a-string

This is broken in edge as well as 2.2.2. Thanks,
# Mislav


On Sat, Dec 6, 2008 at 06:30, Gregg Pollack <[email protected]> wrote:

>
> Hey guys,
>
>    I'm putting together my next Scaling Rails envycast (which may get
> released for free), and I'm running into what appears to be a bug with
> Rails 2.2.2 when ActionCaching.  I looked for a bug report which
> addresses this, but I have been unable to find one, so I thought I'd
> share on here.  Here's the gist:

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to