summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/Memcached_DataObject.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php
index d8b0db5a6..4efec06ab 100644
--- a/classes/Memcached_DataObject.php
+++ b/classes/Memcached_DataObject.php
@@ -31,11 +31,20 @@ class Memcached_DataObject extends DB_DataObject
function __destruct()
{
+ if (get_class($this) == 'Profile')
+ common_log(LOG_INFO, 'subbug: destructing result id ' . $this->_DB_resultid);
$this->free();
if (method_exists('DB_DataObject', '__destruct')) {
parent::__destruct();
}
}
+
+ function free()
+ {
+ if (get_class($this) == 'Profile')
+ common_log(LOG_INFO, 'subbug: freeing result id ' . $this->_DB_resultid);
+ parent::free();
+ }
function &staticGet($cls, $k, $v=null)
{