Skip to content

Performance: Avoid allocating a string if _publishedContentCache has a cached version in MediaCacheService - #22535

Merged
AndyButland merged 2 commits into
umbraco:mainfrom
Henr1k80:avoid-string-allocation-on-cache-hit
Apr 20, 2026
Merged

Performance: Avoid allocating a string if _publishedContentCache has a cached version in MediaCacheService#22535
AndyButland merged 2 commits into
umbraco:mainfrom
Henr1k80:avoid-string-allocation-on-cache-hit

Clarified comment, used GetCacheKey method from location where string…

9cca8d4
Select commit
Loading
Failed to load commit list.
Azure Pipelines / Umbraco CMS 9+ succeeded Apr 20, 2026 in 54m 17s

Build #17.4.0--rc.preview.230+22a3242 succeeded

Details

Tests

  • Failed: 0 (0.00%)
  • Passed: 22,241 (99.64%)
  • Other: 81 (0.36%)
  • Total: 22,322