/** * {@inheritdoc} */ public function getMaxPosition() { // There is cache if ($this->cache_max_position !== null) { return $this->cache_max_position; } // Return max position and cache it return $this->cache_max_position = parent::getMaxPosition(); }