Last modified: 2010-05-15 15:51:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10181 - Support XCache
Support XCache
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.10.x
All Linux
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-06-07 07:23 UTC by slakr
Modified: 2010-05-15 15:51 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Adds XCache support to MediaWiki 1.10.0 (5.97 KB, patch)
2007-06-07 07:23 UTC, slakr
Details

Description slakr 2007-06-07 07:23:30 UTC
Created attachment 3732 [details]
Adds XCache support to MediaWiki 1.10.0

Feel free to flame me if I'm submitting this in the wrong page/with the wrong tags/etc.  I checked out the [[How to become a MediaWiki hacker]] page, tried to /join #mediawiki and /msg Tim (suggested in the "Your first feature" subheading), but he never got back to me (pr'olly busy). So, instead, I'll just post it and add [what I figure are appropriate] tags to it. :P

I made the patch against 1.10.0 to enable XCache support so that current users don't have to muck about in SVN to make it work (and actually, from my other SVN dump, it applies fine anyway).  If you're not a developer, but you stumble across this page and want to enable it, do the following on your box:

1.  Grab the patch, save it into your brand spankin' new mediawiki root directory.
2.  Run `patch -p0 < xcache.patch`
3.  Install mediawiki as usual.  It should detect XCache automagically, just as long as you have XCache itself installed and enabled via php.ini and you've restarted your webserver after installing it.


Also, you do not have to have XCache installed in order to install the patch, as the patch simply adds the appropriate wrappers and config tests should you want to use it.

Tested with: XCache 1.2.0, lighttpd 1.4.13 (fcgi), php 5.2.3 (fcgi, debug).

If you have any questions, comments, concerns, or if I totally botched something, please feel free to contact me.

Cheers,

Kurt Radwanski
irc: slakr@freenode or galaxynet.
en.wp: Koder [hopefully soon: Slakr]
Comment 1 Rob Church 2007-06-07 13:56:20 UTC
Patch seems sane.
Comment 2 Rob Church 2007-06-08 15:57:04 UTC
Applied in r22842, thanks for the patch!
Comment 3 Barns 2007-09-11 09:58:30 UTC
This is great, as Xcache is the only opcode cacher I can reliably use on Windows ;-).
As I am upgrading via the command line, how can I setup MW to get this support activated?

I have added "$wgMainCacheType	= "CACHE_ACCEL";" to my LocalSettings.php, is that enough?
In addition, how can I test my Xcache config is working/properly setup for object caching ?

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links