fix load/cmd_cache core dumping
[spider.git] / perl / DXCommandmode.pm
index cda7690415ce9f56539c009894eea3ca4c421268..fe5a484295f7bc9c0a9948946dfa362559e11506 100644 (file)
@@ -646,7 +646,7 @@ sub clear_cmd_cache
        no strict 'refs';
        
        for (keys %Cache) {
-               undef *{$_};
+               undef *{$_} unless /cmd_cache/;
                dbg("Undefining cmd $_") if isdbg('command');
        }
        %cmd_cache = ();