Skip to content

Commit a098f4f

Browse files
author
Prabhu Ram
committed
MC-19115: Admin Analytics tracking should be enabled by default
- static fix
1 parent 76a0d7c commit a098f4f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/internal/Magento/Framework/App/ProductMetadata.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
/**
1616
* Class ProductMetadata
17+
*
1718
* @package Magento\Framework\App
1819
*/
1920
class ProductMetadata implements ProductMetadataInterface
@@ -29,9 +30,9 @@ class ProductMetadata implements ProductMetadataInterface
2930
const PRODUCT_NAME = 'Magento';
3031

3132
/**
32-
* Magento version cache prefix
33+
* Magento version cache key
3334
*/
34-
const CACHE_PREFIX = 'mage-version';
35+
const VERSION_CACHE_KEY = 'mage-version';
3536

3637
/**
3738
* Product version
@@ -76,7 +77,7 @@ public function __construct(
7677
*/
7778
public function getVersion()
7879
{
79-
$versionFromCache = $this->cache->load(self::CACHE_PREFIX);
80+
$versionFromCache = $this->cache->load(self::VERSION_CACHE_KEY);
8081
$this->version = $this->version ?: $versionFromCache;
8182
if (!$this->version) {
8283
if (!($this->version = $this->getSystemPackageVersion())) {
@@ -85,7 +86,7 @@ public function getVersion()
8586
} else {
8687
$this->version = 'UNKNOWN';
8788
}
88-
$this->cache->save($this->version, self::CACHE_PREFIX, [Config::CACHE_TAG]);
89+
$this->cache->save($this->version, self::VERSION_CACHE_KEY, [Config::CACHE_TAG]);
8990
}
9091
}
9192
return $this->version;

0 commit comments

Comments
 (0)