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 1313use Magento \Directory \Model \Currency as CurrencyModel ;
1414
1515/**
16- * Currency plugin
16+ * Currency plugin triggers clean page cache and provides currency cache identities
1717 */
1818class Currency implements IdentityInterface
1919{
@@ -33,7 +33,7 @@ public function __construct(ManagerInterface $eventManager)
3333 }
3434
3535 /**
36- * Add graphql store config tag to the store group cache identities.
36+ * Trigger clean cache by tags after save rates
3737 *
3838 * @param CurrencyModel $subject
3939 * @param CurrencyModel $result
Original file line number Diff line number Diff line change 99 <type name =" Magento\Framework\App\Cache\Tag\Strategy\Factory" >
1010 <arguments >
1111 <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 >
1315 </argument >
1416 </arguments >
1517 </type >
Original file line number Diff line number Diff line change @@ -501,13 +501,13 @@ public function testCachePurgedWithExchangeRateChange(): void
501501
502502 // Query second store currency
503503 $ secondStoreCode = 'second_store_view ' ;
504- $ responseThirdStore = $ this ->graphQlQueryWithResponseHeaders (
504+ $ responseSecondStore = $ this ->graphQlQueryWithResponseHeaders (
505505 $ query ,
506506 [],
507507 '' ,
508508 ['Store ' => $ secondStoreCode ]
509509 );
510- $ secondStoreCacheId = $ responseThirdStore ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
510+ $ secondStoreCacheId = $ responseSecondStore ['headers ' ][CacheIdCalculator::CACHE_ID_HEADER ];
511511 // Verify we obtain a cache MISS at the 1st time
512512 $ secondStoreResponse = $ this ->assertCacheMissAndReturnResponse (
513513 $ query ,
You can’t perform that action at this time.
0 commit comments