Skip to content

Commit 602a036

Browse files
committed
B2B-2259: customAttributeMetadata GraphQl query has no cache identity
1 parent 49f481c commit 602a036

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

app/code/Magento/EavGraphQl/Plugin/Eav/AttributePlugin.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Magento\Framework\Event\ManagerInterface;
1414

1515
/**
16-
* Currency plugin triggers clean page cache and provides currency cache identities
16+
* EAV plugin runs page cache clean and provides peoper EAV identities.
1717
*/
1818
class AttributePlugin implements IdentityInterface
1919
{
@@ -59,6 +59,9 @@ public function afterSave(
5959
return $result;
6060
}
6161

62+
/**
63+
* @inheirtdoc
64+
*/
6265
public function getIdentities()
6366
{
6467
return $this->identities;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
9+
<type name="Magento\Eav\Model\Entity\Attribute">
10+
<plugin name="afterSavePlugin" type="Magento\EavGraphQl\Plugin\Eav\AttributePlugin" />
11+
</type>
12+
</config>

0 commit comments

Comments
 (0)