From: <ru...@us...> - 2009-07-14 07:13:06
|
Revision: 7025 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7025&view=rev Author: rurban Date: 2009-07-14 07:12:58 +0000 (Tue, 14 Jul 2009) Log Message: ----------- Performance: Do not check RECENTCHANGESBOX cache on actions not using it Modified Paths: -------------- trunk/lib/WikiDB.php Modified: trunk/lib/WikiDB.php =================================================================== --- trunk/lib/WikiDB.php 2009-07-14 07:11:38 UTC (rev 7024) +++ trunk/lib/WikiDB.php 2009-07-14 07:12:58 UTC (rev 7025) @@ -1030,7 +1030,11 @@ $newrevision->_transformedContent = $formatted; } // more pagechange callbacks: (in a hackish manner for now) - if (ENABLE_RECENTCHANGESBOX and empty($meta['is_minor_edit'])) { + if (ENABLE_RECENTCHANGESBOX + and empty($meta['is_minor_edit']) + and !in_array($GLOBALS['request']->getArg('action'), + array('loadfile','upgrade'))) + { require_once("lib/WikiPlugin.php"); $w = new WikiPluginLoader; $p = $w->getPlugin("RecentChangesCached", false); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |