From: Mike Rylander Date: Mon, 27 Aug 2018 16:08:37 +0000 (-0400) Subject: LP#1786987: Locale-less org tree cache object becomes stale X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=9ef4232e23c91c0f413723a1daaf7b696f7ebf3c;p=working%2FEvergreen.git 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 --- 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;