Closed Bug 436679 Opened 17 years ago Closed 17 years ago

Use memcache to cache forum pages for non logged in users

Categories

(support.mozilla.org :: Knowledge Base Software, task)

task
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: nkoth, Assigned: lorchard)

Details

(Whiteboard: tiki_feature, tiki_upstreamed)

Attachments

(1 file)

I think we should implement this, even though the Netscalers are caching forum pages. Just as bug 395271 was needed, I think this should also be done for forums. Any comment, anyone? Does anyone have the query count for a page like: http://support.mozilla.com/tiki-view_forum_thread.php?locale=en-US&forumId=1&comments_parentId=7801 ?
The cache should be invalidated whenever: 1) someone adds a post to the thread, as well as 2) when any post within the thread is changed. Otherwise, pagination and all that might be messed up. 3) any post within the thread is reported, or status (i.e. type in the db) changed. Technically, this means when anyone is adding a post (a reply) to the parent id of 7801 in the example in this bug, and also whenever a post that has a parent id of 7801 is edited.
Target Milestone: 0.6 → 0.7
Target Milestone: 0.7 → 0.6.2
Attaching a patch that does output buffer caching on anonymous forum reads, with cross-locale cache invalidation on edits and report flagging. Not sure where else thread modifications happen, so throwing this patch out there for now.
Attachment #333673 - Flags: review?(nelson)
Attachment #333673 - Flags: review?(laura)
Comment on attachment 333673 [details] [diff] [review] Adding output caching to forum reads for anonymous users, with cache invalidation on edits and reporting Works for me.
Attachment #333673 - Flags: review?(laura) → review+
Checked in as r17686
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Les, can you please merge this to prod branch so I can tag it?
Merged to prod along with bug 448498 as r17708
Whiteboard: tiki_feature
Whiteboard: tiki_feature → tiki_feature, tiki_upstreamed
Attachment #333673 - Flags: review?(nelson)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: