X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=remoteglot.pl;h=6443c3159d56b916d69b5a84df5e167c997ffac7;hp=52eae900e98dc52aa070d4b5eac3fa8c7436b79e;hb=1f30570af3876e62f1b19f9943fe0adcabf7e58c;hpb=a4f9d909178162cf82b601fa515e7400eaaf48ca diff --git a/remoteglot.pl b/remoteglot.pl index 52eae90..6443c31 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -526,7 +526,7 @@ sub prettyprint_pv_no_cache { sub prettyprint_pv { my ($pos, @pvs) = @_; - my $cachekey = join('', @pvs); + my $cachekey = $pos->{'fen'} . join('', @pvs); if (exists($pos->{'prettyprint_cache'}{$cachekey})) { return @{$pos->{'prettyprint_cache'}{$cachekey}}; } else {