// Does this key exists in cache?
if ($this->cacheInstance->offsetExists($cacheKey)) {
// Then use this result
- $result = $cacheInstance->offsetGet($cacheKey);
+ $result = $this->cacheInstance->offsetGet($cacheKey);
} else {
// Now it's time to ask the database layer for this select statement
$result = $this->getDatabaseInstance()->doSelectByTableCriteria($this->getTableName(), $criteriaInstance);