Index: trunk/extensions/CodeReview/CodeRepository.php |
— | — | @@ -216,12 +216,6 @@ |
217 | 217 | } else { |
218 | 218 | $data = $wgMemc->get( $key ); |
219 | 219 | } |
220 | | - |
221 | | - // Try DB cache...this is used by daemonds |
222 | | - if ( !$data && $useCache != 'skipcache' ) { |
223 | | - $dbCache = wfGetCache( CACHE_DB ); |
224 | | - $data = $dbCache->get( $key ); |
225 | | - } |
226 | 220 | |
227 | 221 | # Try the database... |
228 | 222 | if ( !$data && $useCache != 'skipcache' ) { |
— | — | @@ -249,12 +243,7 @@ |
250 | 244 | $svn = SubversionAdaptor::newFromRepo( $this->mPath ); |
251 | 245 | $data = $svn->getDiff( '', $rev1, $rev2 ); |
252 | 246 | // Store to cache |
253 | | - if( php_sapi_name() != 'cli' ) { |
254 | | - $wgMemc->set( $key, $data, 3600 * 24 * 3 ); |
255 | | - } else { |
256 | | - $dbCache = wfGetCache( CACHE_DB ); // memcache fails in cli mode |
257 | | - $dbCache->set( $key, $data, 3600 * 24 * 3 ); |
258 | | - } |
| 247 | + $wgMemc->set( $key, $data, 3600 * 24 * 3 ); |
259 | 248 | // Permanent DB storage |
260 | 249 | $storedData = $data; |
261 | 250 | $flags = Revision::compressRevisionText( $storedData ); |