private function IndexLayout() { $sw = StopWatch::StartNew(); if (!LayoutIndexCache::Contains($this->_layoutDateStart)) { LayoutIndexCache::Add($this->_layoutDateStart, $this->_layoutItems, $this->_layoutDateStart, $this->_layoutDateEnd); } $cachedIndex = LayoutIndexCache::Get($this->_layoutDateStart); $this->_firstLayoutTime = $cachedIndex->GetFirstLayoutTime(); $this->_lastLayoutTime = $cachedIndex->GetLastLayoutTime(); $this->_layoutByStartTime = $cachedIndex->LayoutByStartTime(); $this->_layoutIndexByEndTime = $cachedIndex->LayoutIndexByEndTime(); $sw->Stop(); // Log::Debug('IndexLayout() took %s seconds', $sw->GetTotalSeconds()); }