Skip to content
Snippets Groups Projects
Commit 3466e5da authored by Andy Yates's avatar Andy Yates
Browse files

Caches are now created from an accessor rather than building them in the...

Caches are now created from an accessor rather than building them in the new(). This allows us to remove the new() and lets people inherit from here however they want to. It also stops us from auto-vivifying a plain hash which causes unintentional object retention.

clear_cache() did not de-reference the hash before clearning which could have caused the same situation of creating an auto-vivified hash.

Regression test put in place to stop this from happening again.
parent 210b9a45
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment