Caching with Ruby on Rails
Scaling Rails - 第五章 Advanced Page Caching
Scaling Rails - 第六章 Action Caching
Scaling Rails - 第七章 Fragment Caching
Scaling Rails - 第八章 Memcached
Ruby on Rails Caching Tutorial
Sql cache
Query caches are created at the start of an action and destroyed at the end of that action and thus persist only for the duration of the action.
Rails 2.2.2 經測試, 在action, view, helper 裡default 都已有query cache, 只有在model 沒有, 還是必須使用
query cache
2009年3月17日 星期二
2008年11月15日 星期六
adv cache,memcahe
http://nubyonrails.com/articles/about-this-blog-memcached
http://blog.leetsoft.com/2007/5/22/the-secret-to-memcached
http://blog.craigambrose.com/past/2007/11/13/caching_makes_your_brain_explode/
http://ryandaigle.com/articles/2007/12/19/what-s-new-in-edge-rails-pluggable-controller-caching
http://wiki.rubyonrails.org/rails/pages/MemCached
http://ihower.idv.tw/blog/archives/1768
http://www.ibm.com/developerworks/cn/web/wa-rails1/
http://blog.leetsoft.com/2007/5/22/the-secret-to-memcached
http://blog.craigambrose.com/past/2007/11/13/caching_makes_your_brain_explode/
http://ryandaigle.com/articles/2007/12/19/what-s-new-in-edge-rails-pluggable-controller-caching
http://wiki.rubyonrails.org/rails/pages/MemCached
http://ihower.idv.tw/blog/archives/1768
http://www.ibm.com/developerworks/cn/web/wa-rails1/
Don’t Expire, Just Render it Obsolete
So, here’s my first bit of advice. If you’re building a real site, go straight to memcache. If you’re not building a site for big traffic, don’t cache, just optimise any really stupid queries that are giving you trouble. If you’re using memcache, be sure to run monit too.2008年11月14日 星期五
cache in rails 2.1
http://railscasts.com/episodes/115-caching-in-rails-2-1
http://thewebfellas.com/blog/2008/6/9/rails-2-1-now-with-better-integrated-caching
cache的用法
有幾種cache 機制
自己生個cache object
幫助你生cache_key
memcachestore 是production 常選用的方式, default 存入是存成marshal
http://thewebfellas.com/blog/2008/6/9/rails-2-1-now-with-better-integrated-caching
cache的用法
有幾種cache 機制
自己生個cache object
幫助你生cache_key
memcachestore 是production 常選用的方式, default 存入是存成marshal
2008年11月5日 星期三
cache,page
http://www.javaworld.com.tw/jute/post/view?bid=59&id=191117&sty=3&age=0&tpg=1&ppg=1
http://api.rubyonrails.org/classes/ActionController/Caching/Pages.html#M000282
http://api.rubyonrails.org/classes/ActionController/Caching/Pages.html#M000282
# In Rails 2.1 you can use :if option
caches_page :index, :if => Proc.new { |c| !c.request.format.json? } <=不是json才會cache
訂閱:
文章 (Atom)