Release v2.0.6
feat: Add symfony/yaml dependency and enhance cache configuration
- Added
symfony/yamlas a required dependency for loading YAML service configurations. - Introduced a dedicated cache configuration option for the performance bundle, allowing users to specify a custom cache pool.
- Updated documentation to reflect the new cache features and configuration options.
- Enhanced the changelog and upgrading guide with details on the new cache pool and its usage.
Changelog
Added
- Dedicated cache pool – The bundle now registers a dedicated filesystem cache pool
nowo_performance.cache(TTL 1h) viaframework.cache.pools.PerformanceCacheServiceuses this pool by default instead ofcache.app, isolating bundle cache from application cache. - Cache configuration – New
nowo_performance.cache.pooloption to override the cache pool (e.g.cache.appto share with the application). See CONFIGURATION. - TableStatusChecker: cache getMissingColumns –
getMissingColumns()results are now cached (filesystem, 5 min TTL) to reduceinformation_schemaqueries. UsesCACHE_TTL_SECONDSconstant (300s) shared withtableExistsandtableIsComplete. - symfony/yaml – Added as explicit
requiredependency forYamlFileLoaderwhen loading services config.
Added (tests)
- TableStatusCheckerTest –
testGetMissingColumnsReturnsCachedValueWhenCacheHit,testTableExistsWhenNoCacheAndDatabaseReturnsTrue,testRecordsTableExistsReturnsFalseWhenConnectionFails, and additional cache/exception path tests. - PerformanceExtensionTest –
testLoadCustomCachePoolConfiguration. - ConfigurationTest – Default
cache.poolassertion. - RouteDataRecordRepositoryTest –
testGetStatisticsByHourWithRouteNameAndStatusCodeFilters. - PerformanceAnalysisServiceTest – Correlations, efficiency with null metrics, traffic distribution with single route.
- RouteDataWithAggregatesTest –
getStatusCodesnull,getStatusCodeCountfor non-existent code,getStatusCodeRatiowith empty codes. - PerformanceMetricsServiceGetRouteDataAndRoutesByEnvTest –
testSetMessageBusAcceptsNull,testSetMessageBusAcceptsObject.
See UPGRADING for migration steps.
Commits
- feat: Add symfony/yaml dependency and enhance cache configuration (189fe1a)
- feat: Add cache configuration to performance bundle (060f8b4)
- test: Enhance unit tests for command help, form submissions, and performance metrics (ee7fdc8)
- Merge branch 'main' of github.com:nowo-tech/PerformanceBundle into main (9767735)
- test: Add unit tests for handling stage and test environments (317d80b)
- Apply PHP CS Fixer fixes [skip ci] (6529834)
- Merge branch 'main' of github.com:nowo-tech/PerformanceBundle into main (7ad358f)
- refactor: Update Makefile and PHPUnit configuration for improved test execution (5bd3cd3)
- Apply PHP CS Fixer fixes [skip ci] (4ba767e)