I'm developing a content sharing site.  (Closest analogy is something
like docstoc.com.)   I find that page caching isn't practical since
many things will change depending on whether the user is logged in or
not.  Example: the banner on top will have the user's name, a sign off
link, the side bars will have his profile and recent activities, etc,
which is unique for each user.

Even fragment caching is difficult.  For example, in a listing of
documents, each item has a star rating.  If the user has voted on that
item or the item belongs to him, I hide the vote link.  So I can't
exactly cache the list of most recent documents.

If the user isn't logged in, then I can do a lot more with caching.  I
guess I want to do conditional caching.

What are some general strategies for handling caching in a situation
like this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to