Repository navigation
Use CakePHP attribute metadata cache for discovery - #28
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #28 +/- ##
=========================================
Coverage 99.81% 99.81%
- Complexity 813 814 +1
=========================================
Files 88 88
Lines 2146 2146
=========================================
Hits 2142 2142
Misses 4 4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
josbeir
force-pushed
the
fix/attribute-cache-defaults
branch
from
October 17, 2026 10:48
ea0932d to
b451b2d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FormCompose discovery currently forces
_cake_core_, bypassing CakePHP 6's dedicated attribute metadata cache. Use the application's_cake_attributes_cache in production so its configuredPhpEnginecan load metadata through OPcache.Disable persistent caching in debug mode and source-file validation by default. Preserve application-supplied resolver settings in both modes. Keep the merged
src/Form/discovery paths, including application types undersrc/Form/Field/, and update the configuration example and deployment clear/warm instructions.Aligns with cakephp/app#1109.
Validation:
composer validate --strictandcomposer check: 686 PHP tests, 2525 assertions; analysis, lint, Rector, and formatting pass.npm ciand the production docs build pass.PhpEnginein regression tests.