From 969e088afaba87a3fc3aee9fcf522ef66754bf38 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Thu, 24 Aug 2017 10:39:44 -0400 Subject: [PATCH] LP#1527731: Stablize eg_cache_hash key used for autogen (and other) cache busting Because of the way Perl after 5.18 randomizes internal hash keys and key retrieval order, each run of autogen.sh produces a different key. What we want is the same key for the same data on the same day, regardless of anything else. So, here we tell Perl to use a repeatable hash key order. Signed-off-by: Mike Rylander --- Open-ILS/src/extras/autogen.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/src/extras/autogen.sh b/Open-ILS/src/extras/autogen.sh index 37c9d90d93..7c8e6bc98b 100755 --- a/Open-ILS/src/extras/autogen.sh +++ b/Open-ILS/src/extras/autogen.sh @@ -74,6 +74,9 @@ SKINDIR='LOCALSTATEDIR/web/opac/skin'; COMPRESSOR="" # TODO: set via ./configure #COMPRESSOR="java -jar /opt/yuicompressor-2.4.2/build/yuicompressor-2.4.2.jar" +# So that we get the same cache key on any machine during the same day. +export PERL_HASH_SEED=0 + echo "Updating Evergreen organization tree and IDL" echo "" -- 2.11.0