Example #1
0
 public function getCache($frontendOptions = null, $backendOptions = null)
 {
     if (null === $this->_cache) {
         if (null === $frontendOptions) {
             $frontendOptions = Centurion_Db_Table_Abstract::getDefaultFrontendOptions();
         }
         if (null === $backendOptions) {
             $backendOptions = Centurion_Db_Table_Abstract::getDefaultBackendOptions();
         }
         $frontendOptions['cache_id_prefix'] = get_class($this) . '_' . md5(serialize($this->pk)) . '_';
         $this->_cache = new Centurion_Db_Cache($this, $frontendOptions, $backendOptions);
     }
     return $this->_cache;
 }