remove memory usage log statements
This commit is contained in:
parent
f863f4dfcf
commit
33f397f577
|
@ -967,7 +967,6 @@ SQL;
|
||||||
|
|
||||||
public static function getSchedule($p_fromDateTime = null, $p_toDateTime = null)
|
public static function getSchedule($p_fromDateTime = null, $p_toDateTime = null)
|
||||||
{
|
{
|
||||||
Logging::info(memory_get_usage()/(1024*1024));
|
|
||||||
//generate repeating shows if we are fetching the schedule
|
//generate repeating shows if we are fetching the schedule
|
||||||
//for days beyond the shows_populated_until value in cc_pref
|
//for days beyond the shows_populated_until value in cc_pref
|
||||||
$needScheduleUntil = $p_toDateTime;
|
$needScheduleUntil = $p_toDateTime;
|
||||||
|
@ -976,7 +975,7 @@ SQL;
|
||||||
$needScheduleUntil->add(new DateInterval("P1D"));
|
$needScheduleUntil->add(new DateInterval("P1D"));
|
||||||
}
|
}
|
||||||
Application_Model_Show::createAndFillShowInstancesPastPopulatedUntilDate($needScheduleUntil);
|
Application_Model_Show::createAndFillShowInstancesPastPopulatedUntilDate($needScheduleUntil);
|
||||||
Logging::info(memory_get_usage()/(1024*1024));
|
|
||||||
list($range_start, $range_end) = self::getRangeStartAndEnd($p_fromDateTime, $p_toDateTime);
|
list($range_start, $range_end) = self::getRangeStartAndEnd($p_fromDateTime, $p_toDateTime);
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
|
|
|
@ -287,7 +287,6 @@ class Application_Service_ShowService
|
||||||
*/
|
*/
|
||||||
public function delegateInstanceCreation($daysAdded=null, $end=null, $fillInstances=false)
|
public function delegateInstanceCreation($daysAdded=null, $end=null, $fillInstances=false)
|
||||||
{
|
{
|
||||||
Logging::info(memory_get_usage()/(1024*1024));
|
|
||||||
$populateUntil = $this->getPopulateShowUntilDateTIme();
|
$populateUntil = $this->getPopulateShowUntilDateTIme();
|
||||||
|
|
||||||
if (is_null($this->ccShow)) {
|
if (is_null($this->ccShow)) {
|
||||||
|
@ -319,7 +318,6 @@ class Application_Service_ShowService
|
||||||
$ccShows = array();
|
$ccShows = array();
|
||||||
|
|
||||||
foreach ($ccShowDays as $day) {
|
foreach ($ccShowDays as $day) {
|
||||||
Logging::info(memory_get_usage()/(1024*1024));
|
|
||||||
|
|
||||||
$this->ccShow = $day->getCcShow();
|
$this->ccShow = $day->getCcShow();
|
||||||
$this->isRecorded = $this->ccShow->isRecorded();
|
$this->isRecorded = $this->ccShow->isRecorded();
|
||||||
|
@ -334,7 +332,6 @@ class Application_Service_ShowService
|
||||||
$this->createNonRepeatingInstance($day, $populateUntil);
|
$this->createNonRepeatingInstance($day, $populateUntil);
|
||||||
break;
|
break;
|
||||||
case REPEAT_WEEKLY:
|
case REPEAT_WEEKLY:
|
||||||
Logging::info(memory_get_usage()/(1024*1024));
|
|
||||||
$this->createWeeklyRepeatInstances($day, $populateUntil, REPEAT_WEEKLY,
|
$this->createWeeklyRepeatInstances($day, $populateUntil, REPEAT_WEEKLY,
|
||||||
new DateInterval("P7D"), $daysAdded);
|
new DateInterval("P7D"), $daysAdded);
|
||||||
break;
|
break;
|
||||||
|
@ -358,7 +355,6 @@ class Application_Service_ShowService
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Logging::info(memory_get_usage()/(1024*1024));
|
|
||||||
|
|
||||||
foreach ($ccShows as $ccShow) {
|
foreach ($ccShows as $ccShow) {
|
||||||
if (($this->isUpdate || $fillInstances) && $ccShow->isLinked()) {
|
if (($this->isUpdate || $fillInstances) && $ccShow->isLinked()) {
|
||||||
|
@ -371,7 +367,6 @@ class Application_Service_ShowService
|
||||||
$this->ccShow, $this->linkedShowContent);
|
$this->ccShow, $this->linkedShowContent);
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
Logging::info(memory_get_usage()/(1024*1024));
|
|
||||||
return $this->ccShow;
|
return $this->ccShow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue