开发者

Rails and memcached in a logged env

开发者 https://www.devze.com 2023-01-24 17:39 出处:网络
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 se

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

精彩评论

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