Removed cache.h and solved the compile error