Cache problems

Hi All,

Does anyone know if the cache is unicode safe? I have a page with
japanese text that, when not cached, works fine, but then when the page
is loaded from the cache, crashes in:

/opt/local/lib/ruby/1.8/yaml.rb:133:in load' /opt/local/lib/ruby/1.8/yaml.rb:133:inload’
#{RAILS_ROOT}/app/models/response_cache.rb:97:in `read_response’

Then if the page is reloaded again, it doesn’t crash but the cached
response is incomplete: the text is truncated, and the page footer
isn’t included…

bodhi wrote:

response is incomplete: the text is truncated, and the page footer
isn’t included…

The cache is quite simple. It uses yaml to do the loading and unloading.
Perhaps there is a problem with the way I am using the yaml library.
Please do investigate.


John L.
http://wiseheartdesign.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs