/** * @return bool */ public function htmlBuildHomepageResult() { $taxonomyCategory = $this->getHomepageTaxonomyCategory(); if ( $taxonomyCategory === false) return false; header('esi-enabled: 1'); // refresh the whole page once a day header("Cache-Control: max-age=43200"); $taxonomies = FacetFilteringTool::getTaxonomyTranslation($taxonomyCategory); StringTool::sortAlphaValue($taxonomies); $this->pushResult('taxonomies', $taxonomies); $this->pushResult('is_homepage', true); $this->pushResult('facet_position', $this->getHomepageFacetPosition()); $this->pushResult('element_count', $this->getHomepageElementCount()); return true; }