diff options
author | Brion Vibber <brion@pobox.com> | 2010-01-27 23:51:22 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-01-27 23:51:22 -0800 |
commit | ffaaf9de4a1da25f6168c53a33b25683ae134c61 (patch) | |
tree | 8911714595d17a08469081396d1ff049bed2deb1 /classes/Memcached_DataObject.php | |
parent | 78fe76b058157670bf6c0ab5f3454733d465684e (diff) |
Don't preemptively close existing DB connections for web views (needed to keep # of conns from going insane on multi-site queue daemons, so just doing for CLI)
May, or may not, help with mystery session problems
Diffstat (limited to 'classes/Memcached_DataObject.php')
-rw-r--r-- | classes/Memcached_DataObject.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index 2cc6377f8..b60aa7911 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -428,7 +428,7 @@ class Memcached_DataObject extends DB_DataObject // // WARNING WARNING if we end up actually using multiple DBs at a time // we'll need some fancier logic here. - if (!$exists && !empty($_DB_DATAOBJECT['CONNECTIONS'])) { + if (!$exists && !empty($_DB_DATAOBJECT['CONNECTIONS']) && php_sapi_name() == 'cli') { foreach ($_DB_DATAOBJECT['CONNECTIONS'] as $index => $conn) { if (!empty($conn)) { $conn->disconnect(); |