Seb35 has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/299423

Change subject: Disable the cache if requested
......................................................................

Disable the cache if requested

Previously it was not possible to disable the cache due to this bug
---
M src/MediaWikiFarm.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MediaWikiFarm 
refs/changes/23/299423/1

diff --git a/src/MediaWikiFarm.php b/src/MediaWikiFarm.php
index f028358..43ffea5 100644
--- a/src/MediaWikiFarm.php
+++ b/src/MediaWikiFarm.php
@@ -298,7 +298,7 @@
                if( is_file( dirname( dirname( $this->farmDir ) ) . 
'/includes/DefaultSettings.php' ) )
                        $this->codeDir = null;
                
-               if( !is_dir( $this->cacheDir ) )
+               if( $this->cacheDir && !is_dir( $this->cacheDir ) )
                        mkdir( $this->cacheDir );
                
                # Read the farms configuration

-- 
To view, visit https://gerrit.wikimedia.org/r/299423
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I898d79f049299fe446f46ec9c9c6d9af9595eff1
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MediaWikiFarm
Gerrit-Branch: master
Gerrit-Owner: Seb35 <seb35wikipe...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to