fix for r114164
authorJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Mon, 19 Mar 2012 20:05:11 +0000 (20:05 +0000)
committerJeroen De Dauw <jeroendedauw@users.mediawiki.org>
Mon, 19 Mar 2012 20:05:11 +0000 (20:05 +0000)
includes/specials/SpecialCachedPage.php

index f2c93fa..9c44e92 100644 (file)
@@ -135,7 +135,7 @@ abstract class SpecialCachedPage extends SpecialPage {
         * @since 1.20
         */
        protected function initCaching() {
-               if ( is_null( $this->hasCached ) ) {
+               if ( $this->cacheEnabled && is_null( $this->hasCached ) ) {
                        $cachedChunks = wfGetCache( CACHE_ANYTHING )->get( $this->getCacheKeyString() );
 
                        $this->hasCached = is_array( $cachedChunks );