fixing bug in cache cleanup
fixing bug in cache cleanup

found by tsc 1.1.0-1

germ13/tsd,perkastman/tsd,abner/tsd,abner/tsd,kyroskoh/tsd,frankwallis/tsd,DefinitelyTyped/tsd,Diullei/tsd,tboyce/tsd,IgorMinar/tsd,IgorMinar/tsd,tboyce/tsd,kyroskoh/tsd,kyroskoh/tsd,frankwallis/tsd,Diullei/tsd,perkastman/tsd,tboyce/tsd,nlunets/tsd,germ13/tsd,nlunets/tsd,nlunets/tsd,abner/tsd,DefinitelyTyped/tsd,frankwallis/tsd,IgorMinar/tsd,Diullei/tsd,DefinitelyTyped/tsd,germ13/tsd,perkastman/tsd