Making Rails Wicked Fast: Pagecaching Highly Personalized Web Pages
pivotalblabs.com
pivotalblabs.com
If you want to cache individual pages for users then you can do that with a standard cache mechanism (e.g. memcached) and just expire the cache when you decide an update is necessary.
John.
If someone wants to improve their rails app performance, it's better to use cache_fu and memcached:
http://errtheblog.com/post/4872
to me it makes a lot more sense to cache your db calls instead of the view layer
Pagecaching can hit 4000 reqs per second on commodity hardware--it's way better than the best you can get with db caching (100 reqs per second if you're an optimization god). Finally, pagecaching individual pages per user is mostly useless since your cache hit ratio is so low (i.e., it takes very little load off your Rails app).
Pagecaching does not kill the point of Rails--Rails is about getting apps done quickly and beautifully. You still use Rails to render pages, and you still use Rails to do all write operations. Caching just means rails doesn't have to constantly recompute data that doesn't change!
(disclosure: I'm the author)
http://www.djangoproject.com/documentation/cache/#template-f...
Cache based on the page name and the user id as your keys, and magic presto! Cached! Works well with facebook profile templates, etc.
Not vulnerable to any CSS injections or anything like that.