Fix undefined error in cache system.
Merge pull request #108 from Ghost141/cache_fix

Fix undefined error in cache system.