dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "jquery.textSelection: Implement 'encapsulateSelection' in terms of the other...
[lhc/web/wiklou.git]
/
includes
/
utils
/
UIDGenerator.php
diff --git
a/includes/utils/UIDGenerator.php
b/includes/utils/UIDGenerator.php
index
736109b
..
164615a
100644
(file)
--- a/
includes/utils/UIDGenerator.php
+++ b/
includes/utils/UIDGenerator.php
@@
-364,10
+364,10
@@
class UIDGenerator {
$counter = null; // post-increment persistent counter value
$counter = null; // post-increment persistent counter value
- // Use APC/e
Accelerator/xcache
if requested, available, and not in CLI mode;
+ // Use APC/e
tc
if requested, available, and not in CLI mode;
// Counter values would not survive accross script instances in CLI mode.
$cache = null;
// 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 ) {
$cache = MediaWikiServices::getInstance()->getLocalServerObjectCache();
}
if ( $cache ) {