Try our conversational search powered by Generative AI!

Cache leaked memory by not always cleaning up dependencies

Found in

EPiServer.CMS.Core 12.1.0

Fixed in

EPiServer.CMS.Core 12.13.1

(Or a related package)

Created

Feb 21, 2023

Updated

Mar 02, 2023

Area

CMS Core

State

Closed, Fixed and tested


Description

Fixed a cache memory leak.

The cache stores a mapping of cache dependencies separate from the cache itself. Cache dependencies are cleaned up when items are removed or expired, but left behind when the cache is compacted due to memory pressure. In sites that have much more content than can fit in the cache, over time orphaned dependencies can come to dominate the cache itself, effectively causing a memory leak.