public function addPage(IPage $page) { if (!$this->enabled) { return; } $this->pages[$page->getUri()] = $page; if ($page->isLoaded()) { $timestamp = microtime(); $this->loadedTimes[$page->getUri()] = $timestamp; $this->checkLimits($page); } $page->addObserver($this); }