w2v-server: make caching sensitive to params
diff --git a/w2v-server.pl b/w2v-server.pl
index 58a93f6..1173a18 100755
--- a/w2v-server.pl
+++ b/w2v-server.pl
@@ -100,9 +100,9 @@
 		$c->inactivity_timeout(300);
 		$word =~ s/\s+/ /g;
     for my $w (split(' *\| *', $word)) {
-      if ($cache{$w}) {
+      if ($cache{$w.$cutoff.$no_nbs.$sort}) {
         $c->app->log->info("Getting $w results from cache");
-        $res = $cache{$w}
+        $res = $cache{$w.$cutoff.$no_nbs.$sort}
       } else {
         $c->app->log->info('Looking for neighbours of '.$w);
         if($opt_i) {