[open-ils-commits] [GIT] Evergreen ILS branch tags/rel_3_2_rc1 updated. 5ef2d6d21239400c85f8b5f1ebb53f0d9e2f2e19
Evergreen Git
git at git.evergreen-ils.org
Wed Sep 26 16:01:18 EDT 2018
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, tags/rel_3_2_rc1 has been updated
via 5ef2d6d21239400c85f8b5f1ebb53f0d9e2f2e19 (commit)
from b0c70b6fec191872975278c2310d4fa8722429e9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5ef2d6d21239400c85f8b5f1ebb53f0d9e2f2e19
Author: Mike Rylander <mrylander at gmail.com>
Date: Mon Aug 27 12:08:37 2018 -0400
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.
berick: Definition of my $cache pushed up above first use.
Signed-off-by: Mike Rylander <mrylander at gmail.com>
Signed-off-by: Bill Erickson <berickxx at gmail.com>
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Utils/Configure.pm b/Open-ILS/src/perlmods/lib/OpenILS/Utils/Configure.pm
index 4bd5b3a..351a129 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Utils/Configure.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Utils/Configure.pm
@@ -88,9 +88,12 @@ sub org_tree_js {
# Get our list of locales
my $locales = get_locales();
+ # Remove the no-locale copy
+ my $cache = OpenSRF::Utils::Cache->new;
+ $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;
$cache->delete_cache("orgtree.".$locale->code);
# fetch the org_unit's and org_unit_type's
-----------------------------------------------------------------------
Summary of changes:
.../src/perlmods/lib/OpenILS/Utils/Configure.pm | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list