阅读背景:

使用Rails片段缓存工作,为什么SELECT语句出现在我的日志里面的缓存片段?

来源:互联网 

I've just got memcached setup on my website hosted on Heroku using memcachier and dalli. I have wrapped my homepage in a fragment cache block. In my logs, I can see that the fragment is being cached and read correctly, and I've already found that the results from load testing have greatly improved. But I'm wondering why I still see all these model lookups occuring. My understanding is that I should be able to completely avoid the trip to the database. Do the "Country Load" statements in my logs just represent loading the model from the cache? Or can I avoid them by changing how I'm doing caching?I've just got memcached setup on my website hos




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: