public function reload() { $this->cache->delete($this->getKey()); $this->storeCategoryTree = null; return $this->load(); }
/** * This method is called every time that some property that could affect the categories tree is changed and it * reloads the full tree. */ public function onChange() { $this->storeCategoryTree->reload(); }