fixed cache bug without params, fixed windows compilation