Implementing auto cache generating