[open-ils-commits] [GIT] Evergreen ILS branch rel_3_1 updated. d5c7ed6b54628850841d2b151b4db25c011ced12

Evergreen Git git at git.evergreen-ils.org
Wed Sep 26 15:26:38 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, rel_3_1 has been updated
       via  d5c7ed6b54628850841d2b151b4db25c011ced12 (commit)
      from  821830b8f4c04ac4c521d67f5813114297525f9c (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 d5c7ed6b54628850841d2b151b4db25c011ced12
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