[backend] fix tracker cache generation, add trackercacheversion

Ignore the old cache if the version does not match.