Forum: Ruby on Rails action cache plugin, bad yaml?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ross Karchner (Guest)
on 2006-04-10 02:07
(Received via mailing list)
Is there anyone out there using this plugin in production:

http://wiki.rubyonrails.com/rails/pages/Action+Cac...

it seems to occasionally generate bad YAML, which makes the cached page
unavailable.

Here is what happens when I try to parse it from the console:

 >> YAML.load open('tmp/philly.localfeeds.com/.cache')
ArgumentError: syntax error on line 318, col 249: `  <span
class=\"articletext\">...There\xE2\x80\x99s an interesting article over
at AMERICAblog which states that not only is Bush determined to go to
war with Iran, it is also considering the use of nuclear weapons in that
war. Let\xE2\x80\x99'
         from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
         from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
         from (irb):2

Similar errors are in production.log. If I remove the cache files,
everything works fine again.

-Ross
This topic is locked and can not be replied to.