From 9ef4232e23c91c0f413723a1daaf7b696f7ebf3c Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Mon, 27 Aug 2018 12:08:37 -0400 Subject: [PATCH] LP#1786987: Locale-less org tree cache object becomes stale The autogen.sh script calls a function that flushes all org tree objects cached by locale, but does not flush the one used when the locale is unkown. This commit forces that flushing to occur. Signed-off-by: Mike Rylander --- Open-ILS/src/perlmods/lib/OpenILS/Utils/Configure.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Utils/Configure.pm b/Open-ILS/src/perlmods/lib/OpenILS/Utils/Configure.pm index 4bd5b3a8fd..026c78d1f2 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/Utils/Configure.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/Utils/Configure.pm @@ -88,6 +88,9 @@ sub org_tree_js { # Get our list of locales my $locales = get_locales(); + # Remove the no-locale copy + $cache->delete_cache("orgtree."); + foreach my $locale (@$locales) { warn "removing OrgTree from the cache for locale " . $locale->code . "...\n"; my $cache = OpenSRF::Utils::Cache->new; -- 2.11.0