- Output for 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.13
<?php
// copied from MR
$cache_tag_is_valid_count = 0;
$cache_tag_invalidation_count = 0;
$cache_tag_checksum_count = 0;
// simulate actual data to stop 3v4l from complaining
$performance_test_data['cache_tag_operations']= [];
// NEW:
enum CacheTagMetrics {
case getCurrentChecksum;
case isValid;
case invalidateTags;
}
// CHANGED:
foreach ($performance_test_data['cache_tag_operations'] as $operation) {
match($operation) {
CacheTagMetrics::getCurrentChecksum => $cache_tag_checksum_count++,
CacheTagMetrics::isValid => $cache_tag_is_valid_count++,
CacheTagMetrics::invalidateTags => $cache_tag_invalidation_count++,
};
}