From ba54963eb0f96ae20033be8a8e7a2568849b3176 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 3 Feb 2012 19:21:05 +0100 Subject: index.pl: Try to avoid UTF8 cache fnords --- cgi/index.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cgi') diff --git a/cgi/index.pl b/cgi/index.pl index 73bf1e3..5da40a6 100644 --- a/cgi/index.pl +++ b/cgi/index.pl @@ -31,7 +31,8 @@ sub get_results { default_expires => "${expiry} sec", ); - my $sstr = ( $backend eq 'db' ? "${stop}, ${city}" : "${city} _ ${stop}" ); + my $sstr = ( "${backend} _ ${stop} _ ${city}" ); + $sstr =~ tr{a-zA-Z0-9}{_}c; my $results = $cache->thaw($sstr); -- cgit v1.2.3