<body>

Caiwangqin's blog

Focus on Web2.0, Business, Architecture, Agile, Technic and beyond…

Switch Rails cache files from file_store to ramfs_store

2008年4月25日 星期五

we found the problem of my last post, like this post, Innodb Locks cause something else spend long time in transaction.


It is expire_action from disk in our case. we used action_cache plugin in rails application, we have multiple languange versions of zh and en, so we write expire_reg_action to expire both cache when content after_save, this will spent long time when delete cache from huge files.


so we switch Rails cache files from file_store to ramfs_store temporary, it works perfect right now.


mount -t ramfs ramfs /home/yay/rails_app/current/tmp/cache




reference :



  1. rails缓存机制的几个问题

  2. Innodb Locks, ActiveRecord and acts_as_ferret Problem





标签:

posted by Caiwangqin, 上午7:30

<< 主页