# Cache problems

**URL:** <https://www.ruby-forum.com/t/cache-problems/100285>\
**Category:** Radiant CMS\
**Created:** [July 28, 2006, 5:09am UTC](https://www.ruby-forum.com/t/cache-problems/100285 "2006-07-28T05:09:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bodhi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/49beb7/32.png) [@bodhi](https://www.ruby-forum.com/u/bodhi)\
**Post date:** [July 28, 2006, 5:09am UTC](https://www.ruby-forum.com/t/cache-problems/100285/1 "2006-07-28T05:09:17Z")

</div>

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:in`load’  
#{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…

---

<div class="post-metadata">

**Author:** ![bodhi](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/49beb7/32.png) [@bodhi](https://www.ruby-forum.com/u/bodhi)\
**Post date:** [July 28, 2006, 3:13pm UTC](https://www.ruby-forum.com/t/cache-problems/100285/2 "2006-07-28T15:13:25Z")

</div>

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](http://wiseheartdesign.com)
