Action cache plugin, bad yaml?


#1

Is there anyone out there using this plugin in production:

http://wiki.rubyonrails.com/rails/pages/Action+Cache+Update+Plugin

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:inload’
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