ignoring wide chars in cache keys
authormiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 18 May 2005 01:27:13 +0000 (01:27 +0000)
committermiker <miker@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 18 May 2005 01:27:13 +0000 (01:27 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@740 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher.pm

index 90bfcff..09b384e 100644 (file)
@@ -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);