public function getDbCacheObject() { if ($this->oDbCacheObject != null) { return $this->oDbCacheObject; } else { $sEngine = getParam('sys_db_cache_engine'); $this->oDbCacheObject = bx_instance('BxDolCache' . $sEngine); if (!$this->oDbCacheObject->isAvailable()) { $this->oDbCacheObject = bx_instance('BxDolCacheFile'); } return $this->oDbCacheObject; } }