X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Futils%2FUIDGenerator.php;h=164615ae7893e050970c56793ec8abcd74523831;hp=736109b49a586118eaf3b0051ee8c9b735291e1c;hb=faf7cc4a09848c538320bd2b9067b1a77c0a0183;hpb=ee58c7b17014f3c97408364c073268272c59693f 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 ) {