X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Futils%2FUIDGenerator.php;h=164615ae7893e050970c56793ec8abcd74523831;hb=fdc57ad1c724b9296af2153b6f9e98712d54067b;hp=736109b49a586118eaf3b0051ee8c9b735291e1c;hpb=c15f569fcec998b0a77a22a7970abfcb6a394d79;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/utils/UIDGenerator.php b/includes/utils/UIDGenerator.php index 736109b49a..164615ae78 100644 --- a/includes/utils/UIDGenerator.php +++ b/includes/utils/UIDGenerator.php @@ -364,10 +364,10 @@ class UIDGenerator { $counter = null; // post-increment persistent counter value - // Use APC/eAccelerator/xcache if requested, available, and not in CLI mode; + // Use APC/etc if requested, available, and not in CLI mode; // Counter values would not survive accross script instances in CLI mode. $cache = null; - if ( ( $flags & self::QUICK_VOLATILE ) && PHP_SAPI !== 'cli' ) { + if ( ( $flags & self::QUICK_VOLATILE ) && !wfIsCLI() ) { $cache = MediaWikiServices::getInstance()->getLocalServerObjectCache(); } if ( $cache ) {