开发者

Rails and memcached in a logged env

I se开发者_如何学Ce a lots of how to about rails and memcached. But I cannot find an updated how to that teach how to use memcached in a site where there is both a public section and a logged users section.


Assuming you have gone through all of the relevant Railscasts and the official RailsGuides, you should check out the Scaling Rails series.

Your public pages will likely not have any dynamic (user dependent) context, so page caching is good there. The user dependent pages get a little tricky and require fragment caching or a mixture of page/action caching with ajax calls to get the user dependent content.

Here is a basic example.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜