I enable mmcache on all sites - I have about 5 running on one server, all with mmcache enabled, without any problems. I did not, however, attempt to go back to sites that were previously setup and get them running with mmcache, rather I re-setup the scripts in a different folder and updated the server settings.
- MHart
----- Original Message ----- From: "Carlton B" carltonb@mindspring.com To: "MediaWiki announcements and site admin list" mediawiki-l@Wikimedia.org Sent: Monday, June 20, 2005 4:55 AM Subject: RE: [Mediawiki-l] Activating Turck MMCache after installation
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org]On Behalf Of David Liontooth Sent: Monday, June 20, 2005 5:44 PM To: mediawiki-l@Wikimedia.org Subject: [Mediawiki-l] Activating Turck MMCache after installation
When I set up my first MediaWiki (nice work, btw!), I got "Turck MMCache not installed", even though I had just installed it. (I assume some app or daemon needed to be reloaded to detect it -- which one?)
Later, when I installed a second wiki, Turck MMCache was detected, and I activated it. Seeing the result of the activation in LocalSettings.php, I uncommented the same line for the other wiki --
$wgUseTurckShm = function_exists( 'mmcache_get' ) && php_sapi_name()
== 'apache';
The effect was a messed up cache function -- the second wiki's Main_Page would consistently display in the first wiki. If I selected [Edit] and Preview, I would see the first wiki's real Main_Page intact, but saving it would revert the display to the second wiki's front page.
Nikerabbit on #mediawiki irc diagnosed it and I fixed the problem easily -- whew. But how do I properly activate Turck MMCache for a wiki that is already installed?
This does not answer your question at all, but I experienced some frustrating problems using Turck MMCache and I advise not using it if you're having problems with it. The answer I received here, if I understood it correctly, suggest that MediaWiki has never been able to satisfactory integrate the data caching feature of Turck in a stable or satisfactory way, causing different people to have different problems with it. Thus, you shouldn't enable this option in LocalSettings.php. You might be concerned about losing cache capability, but (as I understand) even if you disable the option, you still get the benefit of Turck caching compiled php scripts, which is a big benefit.
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l