File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
app/code/Magento/DirectoryGraphQl
dev/tests/api-functional/testsuite/Magento/GraphQl/Directory Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 13
13
use Magento \Directory \Model \Currency as CurrencyModel ;
14
14
15
15
/**
16
- * Currency plugin
16
+ * Currency plugin triggers clean page cache and provides currency cache identities
17
17
*/
18
18
class Currency implements IdentityInterface
19
19
{
@@ -33,7 +33,7 @@ public function __construct(ManagerInterface $eventManager)
33
33
}
34
34
35
35
/**
36
- * Add graphql store config tag to the store group cache identities.
36
+ * Trigger clean cache by tags after save rates
37
37
*
38
38
* @param CurrencyModel $subject
39
39
* @param CurrencyModel $result
Original file line number Diff line number Diff line change 9
9
<type name =" Magento\Framework\App\Cache\Tag\Strategy\Factory" >
10
10
<arguments >
11
11
<argument name =" customStrategies" xsi : type =" array" >
12
- <item name =" Magento\Framework\App\Config\ValueInterface" xsi : type =" object" >\Magento\DirectoryGraphQl\Model\Cache\Tag\Strategy\CurrencyConfig</item >
12
+ <item name =" Magento\Framework\App\Config\ValueInterface" xsi : type =" object" >
13
+ Magento\DirectoryGraphQl\Model\Cache\Tag\Strategy\CurrencyConfig
14
+ </item >
13
15
</argument >
14
16
</arguments >
15
17
</type >
Original file line number Diff line number Diff line change @@ -501,13 +501,13 @@ public function testCachePurgedWithExchangeRateChange(): void
501
501
502
502
// Query second store currency
503
503
$ secondStoreCode = 'second_store_view ' ;
504
- $ responseThirdStore = $ this ->graphQlQueryWithResponseHeaders (
504
+ $ responseSecondStore = $ this ->graphQlQueryWithResponseHeaders (
505
505
$ query ,
506
506
[],
507
507
'' ,
508
508
['Store ' => $ secondStoreCode ]
509
509
);
510
- $ secondStoreCacheId = $ responseThirdStore ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
510
+ $ secondStoreCacheId = $ responseSecondStore ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
511
511
// Verify we obtain a cache MISS at the 1st time
512
512
$ secondStoreResponse = $ this ->assertCacheMissAndReturnResponse (
513
513
$ query ,
You can’t perform that action at this time.
0 commit comments