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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T12181, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10181 - Support XCache
Support XCache
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All Linux
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
Depends on:
  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: ---

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

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.


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.