File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed
app/code/Magento/StoreGraphQl/Model Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \StoreGraphQl \Model \Cache \Tag \Strategy ;
9
9
10
- use Magento \Config \App \Config \Type \System ;
11
10
use Magento \Framework \App \Cache \Tag \StrategyInterface ;
12
11
use Magento \Framework \App \Config \ValueInterface ;
12
+ use Magento \StoreGraphQl \Model \Resolver \Store \ConfigIdentity ;
13
13
14
14
/**
15
15
* Produce cache tags for store config.
@@ -26,7 +26,7 @@ public function getTags($object): array
26
26
}
27
27
28
28
if ($ object instanceof ValueInterface && $ object ->isValueChanged ()) {
29
- return [System ::CACHE_TAG ];
29
+ return [ConfigIdentity ::CACHE_TAG ];
30
30
}
31
31
32
32
return [];
Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \StoreGraphQl \Model \Resolver \Store ;
9
9
10
- use Magento \Config \App \Config \Type \System ;
11
10
use Magento \Framework \GraphQl \Query \Resolver \IdentityInterface ;
12
11
13
- class Identity implements IdentityInterface
12
+ class ConfigIdentity implements IdentityInterface
14
13
{
15
14
/**
16
15
* @var string
17
16
*/
18
- private $ cacheTag = System:: CACHE_TAG ;
17
+ const CACHE_TAG = ' gql_store_config ' ;
19
18
20
19
/**
21
20
* @inheritDoc
22
21
*/
23
22
public function getIdentities (array $ resolvedData ): array
24
23
{
25
- $ ids = empty ($ resolvedData ) ?
26
- [] : [$ this ->cacheTag ];
27
- return $ ids ;
24
+ return empty ($ resolvedData ) ? [] : [self ::CACHE_TAG ];
28
25
}
29
26
}
You can’t perform that action at this time.
0 commit comments