[open-ils-commits] [GIT] Evergreen ILS branch master updated. 6f75dd2839cc76e01141ef547e8b0e80cdbd4c87

Evergreen Git git at git.evergreen-ils.org
Fri Oct 28 11:51:39 EDT 2011


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  6f75dd2839cc76e01141ef547e8b0e80cdbd4c87 (commit)
      from  a378a358cf0abdc21c74e730262838fd77f25450 (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 6f75dd2839cc76e01141ef547e8b0e80cdbd4c87
Author: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
Date:   Thu Oct 27 17:37:06 2011 -0400

    Tpac: clear the per-process cache of org-unit settings on each page load
    
    Any time saved is not worth the confusion of changes to org unit settings not
    taking effect in the TPAC without an apache restart, or worse, taking
    effect for some page loads but not others.
    
    Actually authored by Bill.
    
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
index 3b72dbc..af027e3 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm
@@ -21,6 +21,10 @@ sub init_ro_object_cache {
     my $e = $self->editor;
     my $ctx = $self->ctx;
 
+    # reset org unit setting cache on each page load to avoid the 
+    # requirement of reloading apache with each org-setting change
+    $cache{org_settings} = {};
+
     if($ro_object_subs) {
         # subs have been built.  insert into the context then move along.
         $ctx->{$_} = $ro_object_subs->{$_} for keys %$ro_object_subs;

-----------------------------------------------------------------------

Summary of changes:
 .../perlmods/lib/OpenILS/WWW/EGCatLoader/Util.pm   |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list