summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-01-31 16:40:56 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-01-31 16:40:56 -0500
commit7cb5d2c090896af488247b5e156e0067b66f8917 (patch)
tree7e6e7c686e841f2787643db4e7cd603774f24225
parent2d1a1ce73e76d4085af9ee45d3389c36a9078f9c (diff)
downloadgames-word-7cb5d2c090896af488247b5e156e0067b66f8917.tar.gz
games-word-7cb5d2c090896af488247b5e156e0067b66f8917.zip
don't leave stale caches sitting around if we don't want a cache
-rw-r--r--lib/Games/Word.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Games/Word.pm b/lib/Games/Word.pm
index 9ec9403..19593da 100644
--- a/lib/Games/Word.pm
+++ b/lib/Games/Word.pm
@@ -31,6 +31,7 @@ sub set_word_list {
}
else {
$cache = 0;
+ %words = @words = ();
}
}