开发者

Caching with Cedar/Memcache/Rails 3.1

开发者 https://www.devze.com 2023-04-07 13:19 出处:网络
So I have been trying to get caching to work on my private website, which basically just serves static stuff with little dynamic stuff in it. Since I am going to deply to Heroku Cedar, I have to go wi

So I have been trying to get caching to work on my private website, which basically just serves static stuff with little dynamic stuff in it. Since I am going to deply to Heroku Cedar, I have to go with Memcache instead of Varnish. However, I do not seem to be able to make it cache.

I always get cache: stale, invalid, store.

开发者_运维问答The way I cache is to set the appropriate config params, and use the built-in cache_pages method of ActionController. Can someone help me debugging this?


I see the same. But it looks like page caching works.


So i decided to use Cloudflare for caching, after a couple days of running, i received significant boost in performance/caching.

0

精彩评论

暂无评论...
验证码 换一张
取 消