{"data":{"id":"magento2-38864","source":"github-pr","sourceRef":"magento/magento2#38864","title":"Attribute set info is cached (EAV cache), but not cleaned after the attribute set is updated in admin area","pr":{"number":38864,"url":"https://github.com/magento/magento2/pull/38864","author":"MaximGns","mergedAt":"2026-02-10T16:48:18Z","mergeCommit":"eb2e2086f88873c0e56c007c473f51307262eb40","headCommit":"fae43865b9ba70cf41c424b9f2bec09d0c52e06b","baseRef":"2.4-develop","diffSha256":"2021534dcad333284a4285e0b001dfbebccd05cde6d07e3923695965cc0f8b72"},"issues":[{"number":38827,"url":"https://github.com/magento/magento2/issues/38827","title":"Attribute set info is cached (EAV cache), but not cleaned after the attribute set is updated in admin area","labels":["Area: APIs","Component: WebapiAsync","Issue: Confirmed","Priority: P2","Progress: PR Created","Progress: PR in progress","Progress: done","Reported on 2.4.6-p5","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.9","containingTags":["2.4.9"],"reportedOn":"2.4.6-p5","codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"clean","2.4.6-p15":"clean","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"clean","2.4.8-p1":"clean","2.4.8-p2":"clean","2.4.8-p3":"clean","2.4.8-p4":"clean","2.4.8-p5":"clean","2.4.9":"conflict"},"affectedVersions":["2.4.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.6-p14","2.4.6-p15","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10","2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5"],"components":["magento/module-eav"],"files":[{"path":"app/code/Magento/Eav/Model/ResourceModel/Entity/Attribute/Set.php","change":"modified","package":"magento/module-eav"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":77,"mergeBatched":false,"excluded":null,"sections":{"description":"Product is missing attribute values that are recently added to the set without cleaning the cache manually","stepsToReproduce":"1) Use the product bulk api.\n2) Create product with required attributes from the attribute set.\n3) Add new attribute to the used attribute set and save\n4) Import the product again using the bulk api having the new attribute in the payload\n5) Attribute value is not saved on the product","expectedResult":"After a set is being updated and the eav cache is enabled, the related cache key of the set is being cleaned.\nImporting the same payload will have all attribute codes saved to the product that are present on the attribute set","actualResult":"Product is missing attribute values that are recently added to the set without cleaning the cache manually","source":"issue"},"signatures":[],"labels":{"area":["APIs"],"component":["WebapiAsync"],"priority":"P2","severity":null,"reportedOn":["2.4.6-p5"]},"categories":["Web API"],"triage":{"model":"@cf/cloudflare/clef","requestHash":"062c295e30cdcf73e06cedc939797e9170e217d6c93691291d680c90e68b89c4","isBugfix":0.975,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9457,"feature":0.0137,"refactor":0.0193,"tests_only":0.0089,"docs_only":0.0058,"dependency":0.0066},"confidence":0.874},"scope":{"score":0.8645,"probabilities":{"0":0.306,"1":0.5234,"2":0.1706},"confidence":0.0951},"risk":{"score":0.4216,"probabilities":{"0":0.6619,"1":0.2545,"2":0.0836},"confidence":0.2649},"area":{"choice":"catalog","probabilities":{"catalog":0.5281,"checkout":0.0061,"customer":0.0048,"admin":0.0375,"graphql_api":0.0214,"framework":0.3713,"frontend":0.0062,"other":0.0246},"confidence":0.3364},"securityRelevant":0.0053,"reportedVersion":{"choice":"2.4.6-p5","probabilities":{"2.4.0":0.0019,"2.4.0-p1":0.0021,"2.4.1":0.002,"2.4.1-p1":0.0022,"2.4.2":0.002,"2.4.2-p1":0.0022,"2.4.2-p2":0.0023,"2.4.3":0.0022,"2.4.3-p1":0.0025,"2.4.3-p2":0.0031,"2.4.3-p3":0.0027,"2.4.4":0.0023,"2.4.4-p1":0.0023,"2.4.4-p10":0.0028,"2.4.4-p11":0.0035,"2.4.4-p12":0.0034,"2.4.4-p13":0.0036,"2.4.4-p14":0.0037,"2.4.4-p15":0.0036,"2.4.4-p16":0.0037,"2.4.4-p17":0.0032,"2.4.4-p18":0.0028,"2.4.4-p2":0.0021,"2.4.4-p3":0.0022,"2.4.4-p4":0.0027,"2.4.4-p5":0.0034,"2.4.4-p6":0.0024,"2.4.4-p7":0.0023,"2.4.4-p8":0.0027,"2.4.4-p9":0.0024,"2.4.5":0.0032,"2.4.5-p1":0.0029,"2.4.5-p10":0.0029,"2.4.5-p11":0.0038,"2.4.5-p12":0.0047,"2.4.5-p13":0.0039,"2.4.5-p14":0.0042,"2.4.5-p15":0.0033,"2.4.5-p16":0.0039,"2.4.5-p17":0.0032,"2.4.5-p2":0.0028,"2.4.5-p3":0.0029,"2.4.5-p4":0.0033,"2.4.5-p5":0.0045,"2.4.5-p6":0.0048,"2.4.5-p7":0.0038,"2.4.5-p8":0.0038,"2.4.5-p9":0.0026,"2.4.6":0.0705,"2.4.6-p1":0.0034,"2.4.6-p10":0.0028,"2.4.6-p11":0.0032,"2.4.6-p12":0.0029,"2.4.6-p13":0.0029,"2.4.6-p14":0.003,"2.4.6-p15":0.0225,"2.4.6-p2":0.0027,"2.4.6-p3":0.0055,"2.4.6-p4":0.0097,"2.4.6-p5":0.5995,"2.4.6-p6":0.0184,"2.4.6-p7":0.0094,"2.4.6-p8":0.0079,"2.4.6-p9":0.0084,"2.4.7":0.0048,"2.4.7-p1":0.0042,"2.4.7-p10":0.0039,"2.4.7-p2":0.0039,"2.4.7-p3":0.0049,"2.4.7-p4":0.0051,"2.4.7-p5":0.0052,"2.4.7-p6":0.0056,"2.4.7-p7":0.0046,"2.4.7-p8":0.0035,"2.4.7-p9":0.003,"2.4.8":0.0033,"2.4.8-p1":0.0043,"2.4.8-p2":0.0051,"2.4.8-p3":0.0052,"2.4.8-p4":0.0048,"2.4.8-p5":0.0047,"2.4.9":0.0042,"unspecified":0.0022},"confidence":0.3587},"backportWorthy":{"score":1.5516,"probabilities":{"0":0.092,"1":0.2644,"2":0.6436},"confidence":0.2389}},"curated":{"title":"Fixes stale attribute set info in the EAV cache after a set is saved or deleted","description":"Attribute set info is cached in the EAV cache but not cleaned after the attribute set is updated, so importing the product again using the bulk api leaves it missing attribute values recently added to the set. The Eav ResourceModel Set now calls remove() on the set cache keys in _afterSave and _afterDelete when the EAV cache is enabled.","categories":["Web API"],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-38864 details"}