I'm building a kind of forum . But there are no anonymous users, only registered users. (About 250 users). The idea is to build an object "ALL", which contains a list of "Forumgroup"-objects. "Forumgroup" contains "Forum"-objects "Forum" contains "Topic"-objects
and "Topic" contains a list of "Reply"-objects. I want to but the "ALL" object in the cache. Each time a message is posted, I want to resfresh the cache. (and the database ofcourse) What are the advantages and disadvantages of this idea? thnx
depends how many topics you store ... i don't think this is a superb idea though... you could have serious issues with data contention ... multiple updates/inserts coming in at a single point in time ... best just to go to the database for the most recent data
in cases where data needs to be up to date all the time. However you might be able to get away with storing the ForumGroups and Forums but not the topics... the reason being its not likely you'll be updating the ForumGroups and Forums in the database but highly
likely you'll be posting new topics and replies..
Jeevay
Member
30 Points
6 Posts
Caching a forum
Aug 29, 2003 06:14 PM|LINK
adweigert
Participant
1177 Points
216 Posts
Re: Caching a forum
Aug 29, 2003 07:23 PM|LINK
Jeevay
Member
30 Points
6 Posts
Re: Caching a forum
Aug 29, 2003 10:31 PM|LINK