File tree 1 file changed +5
-3
lines changed
app/code/core/Mage/Csp/Model
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 14
14
*/
15
15
class Mage_Csp_Model_Config extends Varien_Simplexml_Config
16
16
{
17
+ public const CACHE_TYPE = 'config ' ;
18
+ public const CACHE_ID = 'config_csp ' ;
17
19
public const CACHE_TAG = 'config_csp ' ;
18
20
19
21
/**
20
22
* @inheritDoc
21
23
*/
22
24
public function __construct ($ sourceData = null )
23
25
{
24
- $ this ->setCacheId (' config_csp ' );
26
+ $ this ->setCacheId (self :: CACHE_ID );
25
27
$ this ->setCacheTags ([self ::CACHE_TAG ]);
26
28
$ this ->setCacheChecksum (null );
27
29
@@ -37,7 +39,7 @@ public function __construct($sourceData = null)
37
39
*/
38
40
protected function _construct (): self
39
41
{
40
- if (Mage::app ()->useCache (' config_csp ' ) && $ this ->loadCache ()) {
42
+ if (Mage::app ()->useCache (self :: CACHE_TYPE ) && $ this ->loadCache ()) {
41
43
return $ this ;
42
44
}
43
45
@@ -46,7 +48,7 @@ protected function _construct(): self
46
48
47
49
$ this ->setXml ($ config ->getNode ());
48
50
49
- if (Mage::app ()->useCache (' config_api ' )) {
51
+ if (Mage::app ()->useCache (self :: CACHE_TYPE )) {
50
52
$ this ->saveCache ();
51
53
}
52
54
return $ this ;
You can’t perform that action at this time.
0 commit comments