{"data":{"id":"magento2-29954","source":"github-pr","sourceRef":"magento/magento2#29954","title":"Use compiled config for generated data instead of general config","pr":{"number":29954,"url":"https://github.com/magento/magento2/pull/29954","author":"ilnytskyi","mergedAt":"2024-09-05T13:38:34Z","mergeCommit":"f91a18ead50126c4272aa48a61cc28861b61f8c7","headCommit":"6aa57a17977582373c8ec90ea2b25010921036e6","baseRef":"2.4-develop","diffSha256":"f26216f1ac06bf0b4725d99764f12d59b7466dcb55d6dfa7497d7a906cca3b34"},"issues":[{"number":38785,"url":"https://github.com/magento/magento2/issues/38785","title":"[Issue] Use compiled config for generated data instead of general config","labels":["Area: Framework","Component: UiComponents","Issue: Confirmed","Priority: P3","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x","Severity: S3"],"kind":"pr-derived"}],"fixedIn":"2.4.8","containingTags":["2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5","2.4.9"],"reportedOn":null,"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":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","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"],"components":["magento/module-ui"],"files":[{"path":"app/code/Magento/Ui/etc/di.xml","change":"modified","package":"magento/module-ui"}],"stripped":{"tests":[],"docs":[],"outsideCode":["app/etc/di.xml"]},"linesChanged":5,"mergeBatched":false,"excluded":null,"sections":{"description":"When we used multi-container ASG we noticed that magento loads a lot of data from shared cache instance (Redis).\nThat during deploys of new containers leads to downtime or unstable behavior during containers swapping.\nWe decided to move instance-sensetive cache types such as compiled DI, events, to containers itself.\nThat prevents cache overriding in shared instance while old container is alive a few minutes after deploy.\n```\n...\n            'compiled_config' => [\n                'frontend' => 'file_cache'\n            ],\n...\n```\nSo we checked what caches lead to such result, and moved some core classes from using shared config type to compiled_config because this data is instance-sensitive and not necessary should be shared.\nThis also reduses excessive network transfer and overhead of data that depended on certain version of code.","stepsToReproduce":"1. Cache keys **event_config_cache**, **ui_component_configuration_definition_data**, **app_action_list**,**plugins** are stored in compiled config instance.\n2. Running two servers with different code version and isolated compiled config does not lead to cache overriding or application downtime or unexpected behavior caused by using the cache from different app version.","expectedResult":null,"actualResult":null,"source":"pr"},"signatures":[],"labels":{"area":["Framework"],"component":["UiComponents"],"priority":"P3","severity":"S3","reportedOn":["2.4.x"]},"categories":[],"triage":{"model":"@cf/cloudflare/clef","requestHash":"8cd201fdd997eee7bdabb453d645704040d599d5e436af15416800ba0ae1c4d4","isBugfix":0.3795,"changeKind":{"choice":"refactor","probabilities":{"bugfix":0.394,"feature":0.1059,"refactor":0.4751,"tests_only":0.0096,"docs_only":0.0045,"dependency":0.0109},"confidence":0.2709},"scope":{"score":0.7876,"probabilities":{"0":0.4481,"1":0.3162,"2":0.2357},"confidence":0.0345},"risk":{"score":0.6915,"probabilities":{"0":0.4149,"1":0.4788,"2":0.1063},"confidence":0.119},"area":{"choice":"framework","probabilities":{"catalog":0.0044,"checkout":0.0042,"customer":0.0027,"admin":0.0231,"graphql_api":0.0028,"framework":0.9487,"frontend":0.0073,"other":0.0068},"confidence":0.8866},"securityRelevant":0.0099,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0058,"2.4.0-p1":0.0053,"2.4.1":0.0059,"2.4.1-p1":0.0052,"2.4.2":0.0089,"2.4.2-p1":0.0081,"2.4.2-p2":0.0094,"2.4.3":0.0177,"2.4.3-p1":0.0171,"2.4.3-p2":0.0127,"2.4.3-p3":0.0075,"2.4.4":0.02,"2.4.4-p1":0.0113,"2.4.4-p10":0.0083,"2.4.4-p11":0.0116,"2.4.4-p12":0.0092,"2.4.4-p13":0.0086,"2.4.4-p14":0.0108,"2.4.4-p15":0.0076,"2.4.4-p16":0.008,"2.4.4-p17":0.0065,"2.4.4-p18":0.0069,"2.4.4-p2":0.0039,"2.4.4-p3":0.0041,"2.4.4-p4":0.0043,"2.4.4-p5":0.0058,"2.4.4-p6":0.0062,"2.4.4-p7":0.0052,"2.4.4-p8":0.005,"2.4.4-p9":0.006,"2.4.5":0.0168,"2.4.5-p1":0.0133,"2.4.5-p10":0.0092,"2.4.5-p11":0.0119,"2.4.5-p12":0.0104,"2.4.5-p13":0.0089,"2.4.5-p14":0.0099,"2.4.5-p15":0.0079,"2.4.5-p16":0.0079,"2.4.5-p17":0.0082,"2.4.5-p2":0.004,"2.4.5-p3":0.0055,"2.4.5-p4":0.0082,"2.4.5-p5":0.0057,"2.4.5-p6":0.0067,"2.4.5-p7":0.0067,"2.4.5-p8":0.006,"2.4.5-p9":0.0054,"2.4.6":0.025,"2.4.6-p1":0.0179,"2.4.6-p10":0.0103,"2.4.6-p11":0.0111,"2.4.6-p12":0.0127,"2.4.6-p13":0.0118,"2.4.6-p14":0.0105,"2.4.6-p15":0.0116,"2.4.6-p2":0.0054,"2.4.6-p3":0.008,"2.4.6-p4":0.0094,"2.4.6-p5":0.0077,"2.4.6-p6":0.0095,"2.4.6-p7":0.008,"2.4.6-p8":0.007,"2.4.6-p9":0.006,"2.4.7":0.0155,"2.4.7-p1":0.0111,"2.4.7-p10":0.0098,"2.4.7-p2":0.0089,"2.4.7-p3":0.013,"2.4.7-p4":0.0149,"2.4.7-p5":0.0116,"2.4.7-p6":0.0135,"2.4.7-p7":0.0121,"2.4.7-p8":0.0091,"2.4.7-p9":0.0059,"2.4.8":0.0174,"2.4.8-p1":0.014,"2.4.8-p2":0.0162,"2.4.8-p3":0.0174,"2.4.8-p4":0.0147,"2.4.8-p5":0.0137,"2.4.9":0.0139,"unspecified":0.1899},"confidence":0.0339},"backportWorthy":{"score":1.1493,"probabilities":{"0":0.2292,"1":0.3924,"2":0.3784},"confidence":0.0246}},"curated":{"title":"Moves the UI component definition cache to the compiled config cache type","description":"When using multi-container ASG, magento loads a lot of data from shared cache instance (Redis), and cache overriding in shared instance during deploys leads to downtime or unstable behavior. The Ui definition data class now uses compiled config instead of the shared config type.","categories":[],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-29954 details"}