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 :
标签: Technologies
发表评论
订阅 博文评论 [Atom]
<< 主页