From 9ffe6f0f2a0f0782c021823bfe3c26f70360edc3 Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 18 May 2005 01:27:13 +0000 Subject: [PATCH] ignoring wide chars in cache keys git-svn-id: svn://svn.open-ils.org/ILS/trunk@740 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../src/perlmods/OpenILS/Application/Storage/Publisher.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher.pm b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher.pm index 90bfcffb57..09b384e58a 100644 --- a/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher.pm +++ b/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher.pm @@ -65,7 +65,10 @@ sub cachable_wrapper { } my $cache_page = int($cache_args{offset} / $cache_args{cache_page_size}); - my $cache_key = md5_hex($key_string.$cache_page); + my $cache_key; + { use bytes; + $cache_key = md5_hex($key_string.$cache_page); + } $log->debug("Key string for cache lookup is $key_string -> $cache_key", DEBUG); $log->debug("Cache page is $cache_page", DEBUG); -- 2.43.2