private function updateIfNeeded() { if (!$this->cache->upToDate($this->pageSize)) { $this->createCache(); $this->cache->load(); } }