config = $config; $this->scopeConfig = $scopeConfig; } /** * Is full page cache enabled * * @return bool */ public function isFullPageCacheEnabled(): bool { return $this->config->isEnabled(); } /** * Is category pagination cache enabled * * @return bool */ public function isPaginationCacheEnabled(): bool { return $this->scopeConfig->isSetFlag(ToolbarMemorizer::XML_PATH_CATALOG_REMEMBER_PAGINATION); } }