Commit 89bf4ec8d71497c278d25685a86363610f444629

Authored by conradverm
1 parent 0952b9a8

KTS-2360

"Remove cache logging."
Updated.

Committed By: Conrad Vermeulen
Reviewed By: Kevin Fourie

git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7334 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/subscriptions/subscriptions.inc.php
... ... @@ -684,7 +684,7 @@ class SubscriptionEvent {
684 684 // based on the old SubscriptionEngine::retrieveSubscribers.
685 685 function _getSubscribers($iObjectId, $iSubType) {
686 686 global $default; // for the logging.
687   - $default->log->debug("_getSubscribers(id=$iObjectId, type=$iSubType); table=" .Subscription::getTableName($iSubType). "; id=" .Subscription::getIdFieldName($iSubType));
  687 + if (KTLOG_CACHE) $default->log->debug("_getSubscribers(id=$iObjectId, type=$iSubType); table=" .Subscription::getTableName($iSubType). "; id=" .Subscription::getIdFieldName($iSubType));
688 688  
689 689 $aUsers = array();
690 690 $sQuery = "SELECT user_id FROM " . Subscription::getTableName($iSubType) . " WHERE " . Subscription::getIdFieldName($iSubType) . " = ?";
... ... @@ -708,7 +708,7 @@ class SubscriptionEvent {
708 708 }
709 709 }
710 710  
711   - $default->log->debug('retrieveSubscribers found count=' . count($aUsers));
  711 + if (KTLOG_CACHE) $default->log->debug('retrieveSubscribers found count=' . count($aUsers));
712 712 return $aUsers;
713 713 }
714 714 }
... ...