adding clear precache function