stupid mistake, was trying to call saveCache() statically