From: Mr. E23 Date: Thu, 29 Jan 2004 02:58:16 +0000 (+0000) Subject: Removed not-so-useful RC caching X-Git-Tag: 1.3.0beta1~1081 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=4a43d39f7f4296e69d5d8f410507cb018aa01abb;p=lhc%2Fweb%2Fwiklou.git Removed not-so-useful RC caching --- diff --git a/includes/SpecialRecentchanges.php b/includes/SpecialRecentchanges.php index 71cf5f4b11..fcd784c1f4 100644 --- a/includes/SpecialRecentchanges.php +++ b/includes/SpecialRecentchanges.php @@ -92,16 +92,9 @@ function wfSpecialRecentchanges( $par ) "WHERE rc_timestamp > '{$cutoff}' {$hidem} " . "ORDER BY rc_timestamp DESC LIMIT {$limit}"; - $memckey = "$wgDBname:recentchanges:" . md5( $sql2 ); - - $rows = $wgMemc->get( $memckey ); - if( ! is_array($rows) ){ - $rows = array(); - $res = wfQuery( $sql2, DB_READ, $fname ); - while( $row = wfFetchObject( $res ) ){ - $rows[] = $row; - } - $wgMemc->set($memckey, $rows, 60); + $res = wfQuery( $sql2, DB_READ, $fname ); + while( $row = wfFetchObject( $res ) ){ + $rows[] = $row; } if(isset($from)) {