Closed
Bug 395271
Opened 17 years ago
Closed 16 years ago
Use memcache to cache output pages for non logged in users
Categories
(support.mozilla.org :: General, defect, P1)
support.mozilla.org
General
Tracking
(Not tracked)
VERIFIED
FIXED
0.6
People
(Reporter: jtbatson, Assigned: lorchard)
References
Details
(Whiteboard: tiki_feature, tiki_upstreamed)
Attachments
(1 file, 1 obsolete file)
Memcache and http header improvements w/ netscaler in place by Sept 21st (at the very least, we need these)
Let's use this as a tracking bug. File additional details as necessary.
Updated•17 years ago
|
OS: Mac OS X → All
Hardware: PC → All
Updated•17 years ago
|
Assignee: nobody → morgamic
Updated•17 years ago
|
Target Milestone: 0.5 → 0.2
Comment 3•17 years ago
|
||
This is not a reasonable target per discussion with morgamic. Moving to 0.5.
Target Milestone: 0.2 → 0.5
Comment 4•17 years ago
|
||
morgamic, any updates on this bug? It's currently targetted for 0.5, which is end of January. Unreasonable?
Updated•17 years ago
|
Assignee: morgamic → nelson
Updated•17 years ago
|
Priority: -- → P1
Updated•17 years ago
|
Assignee: nelson → nobody
Comment 6•16 years ago
|
||
The goal is to put all non personalized pages that are generated in memcache.
For bonus points, invalidate pages on an individual basis as they are updated.
Assignee: nobody → lorchard
Severity: normal → major
Summary: Land Memcache fixes → Use memcache to cache output pages for non logged in users
Updated•16 years ago
|
Severity: major → blocker
Assignee | ||
Updated•16 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 8•16 years ago
|
||
I dug into the edit side of things and included what I think is working expiration logic for the caching on the output side of things. Haven't seen this on any staging servers yet, but let me know how this looks.
Also, per oremj, moving the patch over to this bug for review.
As for locale stuff - I can't find any source of locale info other than the request parameters, which get supplied by the mod_rewrite rules
Attachment #321178 -
Flags: review?(nelson)
Attachment #321178 -
Flags: review?(laura)
Attachment #321178 -
Flags: review?(jason_barnabe)
Comment 9•16 years ago
|
||
Attachment 321178 [details] [diff] looks ok on code reading, but need to install on my dev server to test. My only comment for now is that instead of gutting the existing Tiki file system cache for wiki, we could add this as an option, and change the option setting for wiki cache to allow for use of memcache in the settings.
Assignee | ||
Comment 10•16 years ago
|
||
Nelson: I've got some code in there to either (or both) cache page output or wiki page data. The wiki page data caching happens pretty much in the same spot as the file system cache - though, yeah, it's kind of hacked around the existing cache.
The thing is, though, caching just wiki page data still results in around 110+ DB queries - whereas page output caching results in around 19+ DB queries. I could be missing something though
Comment 11•16 years ago
|
||
In the process of reviewing this as well...I'd recommend that for pushing it back upstream we put it in as an option. For now I'm happy to get it working and tested on our servers, and once we're happy with that we should float the changes back upstream.
Comment 12•16 years ago
|
||
I think also that tiki-rollback.php should invalidate the cache.
I am also wondering about the invalidating of the cache for a page when the staging copy is updated (due to the wikiapproval_prefix stripping). Maybe the invalidation should be when the page is approved, i.e. in tiki-approve_staging_page.php instead.
Assignee | ||
Comment 13•16 years ago
|
||
Sure - I'll try throwing the cache invalidation into those spots instead. I was a little unsure of the spot where I'd stuck it, thanks to lack of familiarity with the Tiki code. I had a sense that there might be better spots in the flow to do that.
Comment 14•16 years ago
|
||
Comment on attachment 321178 [details] [diff] [review]
first round-trip stab at quick and dirty output memcache with expiration on write
Good for me. Go ahead and commit this, and let's get it up on a) load test and b) support-stage for wider QA.
Attachment #321178 -
Flags: review?(laura) → review+
Assignee | ||
Comment 15•16 years ago
|
||
Trying to sort out my SVN check-in. Until then, here's another patch with what I think should be good to go for testing
Attachment #321178 -
Attachment is obsolete: true
Attachment #321178 -
Flags: review?(nelson)
Attachment #321178 -
Flags: review?(jason_barnabe)
Comment 16•16 years ago
|
||
What's the scope of these memcache checkins -- do they apply to the knowledge base articles only, or do they also include forum thread views, e.g. http://support.mozilla.com/tiki-view_forum_thread.php?locale=sv-SE&forumId=1&comments_parentId=54828 ?
Assignee | ||
Comment 17•16 years ago
|
||
So far, just wiki pages in the knowledge base.
Assignee | ||
Comment 18•16 years ago
|
||
The code is now checked into SVN, r13362
[svn (projects/sumo)]: 13362: [lorchard@mozilla.com] Bug 395271: Use memcache to cache output from wiki pages for non logged in users
Updated•16 years ago
|
Updated•16 years ago
|
Keywords: push-needed
Updated•15 years ago
|
Whiteboard: tiki_feature
Comment 19•15 years ago
|
||
Upstreamed. Implementation changed to avoid some code duplication, but should have an identical result.
Whiteboard: tiki_feature → tiki_feature, tiki_upstreamed
Comment 20•15 years ago
|
||
The part of the commit in the staging approval page is no longer required. I moved the invalidation to the standard page cache invalidation function (yes, tiki got one of those, who would have guessed?), so simply updating the page clears the cache.
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•