]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't preemptively close existing DB connections for web views (needed to keep #...
authorBrion Vibber <brion@pobox.com>
Thu, 28 Jan 2010 07:51:22 +0000 (23:51 -0800)
committerBrion Vibber <brion@pobox.com>
Thu, 28 Jan 2010 07:51:22 +0000 (23:51 -0800)
May, or may not, help with mystery session problems

classes/Memcached_DataObject.php

index 2cc6377f83f1a5b38545d4faeb6709792fbfe721..b60aa7911d66c2ff58805068ff0b21204786cf0a 100644 (file)
@@ -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();