Bug fix: Undefined variable: cache (Issue #705)