From 95fa4aa1e668884d5d1a2d19c89c3bd8bd313608 Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 15 Feb 2024 20:14:16 -0600 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index 38dbc4ba..7a2e8eb9 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -62,7 +62,8 @@ public: void cleanup() { - + while(_cache.size() > _max_size) + _cache.erase(_cache.begin()); } void