[open-ils-commits] [GIT] Evergreen ILS branch master updated. 472d436eda5ed276bba3a52aee79bb37bf02fc51

Evergreen Git git at git.evergreen-ils.org
Wed Sep 26 15:25:57 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, master has been updated
       via  472d436eda5ed276bba3a52aee79bb37bf02fc51 (commit)
      from  9c5ab622255c6f548b0f9100825346bfaa6b5456 (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 472d436eda5ed276bba3a52aee79bb37bf02fc51
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