Adds cache generating