51 \
Magento\Directory\Model\CountryFactory $countryFactory,
55 $this->_countryFactory = $countryFactory;
57 $this->_configCacheType = $configCacheType;
67 $cacheKey =
'COUNTRYOFMANUFACTURE_SELECT_STORE_' . $this->_storeManager->getStore()->getCode();
68 if (
$cache = $this->_configCacheType->load($cacheKey)) {
72 $country = $this->_countryFactory->create();
76 $this->_configCacheType->save($this->getSerializer()->
serialize(
$options), $cacheKey);
87 private function getSerializer()
89 if ($this->serializer ===
null) {
93 return $this->serializer;
serialize($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"')
__construct(\Magento\Directory\Model\CountryFactory $countryFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\App\Cache\Type\Config $configCacheType)