Index: trunk/extensions/CodeReview/CodeRepository.php |
— | — | @@ -149,10 +149,10 @@ |
150 | 150 | |
151 | 151 | /** |
152 | 152 | * @param int $rev Revision ID |
153 | | - * @param $skipCache 'skipcache' to avoid caching |
| 153 | + * @param $useCache 'skipcache' to avoid caching |
154 | 154 | * 'cached' to *only* fetch if cached |
155 | 155 | */ |
156 | | - function getDiff( $rev, $skipCache = '' ) { |
| 156 | + function getDiff( $rev, $useCache = '' ) { |
157 | 157 | global $wgMemc; |
158 | 158 | |
159 | 159 | $rev1 = $rev - 1; |
— | — | @@ -164,13 +164,13 @@ |
165 | 165 | } |
166 | 166 | |
167 | 167 | $key = wfMemcKey( 'svn', md5( $this->mPath ), 'diff', $rev1, $rev2 ); |
168 | | - if( $skipCache === 'skipcache' ) { |
| 168 | + if( $useCache === 'skipcache' ) { |
169 | 169 | $data = NULL; |
170 | 170 | } else { |
171 | 171 | $data = $wgMemc->get( $key ); |
172 | 172 | } |
173 | 173 | |
174 | | - if( !$data && $skipCache != 'cached' ) { |
| 174 | + if( !$data && $useCache != 'cached' ) { |
175 | 175 | $svn = SubversionAdaptor::newFromRepo( $this->mPath ); |
176 | 176 | $data = $svn->getDiff( '', $rev1, $rev2 ); |
177 | 177 | $wgMemc->set( $key, $data, 3600*24*3 ); |