They are currently cleared at the start, but left hanging around potentially occupying memory after the method completes.
The caches in CssInliner itself may not be a problem, as they are object properties which will (hopefully) be garbage-collected.
But the cache in DeclarationBlockParser is static, and should be cleared after use - see #1567.
Clearing should be done in a finally to cover the case when an exception it thrown.
They are currently cleared at the start, but left hanging around potentially occupying memory after the method completes.
The caches in
CssInlineritself may not be a problem, as they are object properties which will (hopefully) be garbage-collected.But the cache in
DeclarationBlockParseris static, and should be cleared after use - see #1567.Clearing should be done in a
finallyto cover the case when an exception it thrown.