Fixed broken compilation when caches are disabled
Merge pull request #61 from adrianlshaw/broken-cache-fix

Fixed compilation errors when caches are disabled