Exemple #1
0
 /**
  * Prepend temp path to paths
  *
  * @param Zend_Config $config
  */
 protected function _prependPath(Zend_Config $config)
 {
     $app = $this->getApp();
     // File
     $fileOptions = Zym_Cache::getBackendOptions('file');
     if (isset($fileOptions['cache_dir'])) {
         $fileOptions['cache_dir'] = $app->getPath(Zym_App::PATH_DATA, $fileOptions['cache_dir']);
     }
     Zym_Cache::setBackendOptions('file', $fileOptions);
     // Sqlite
     $sqliteOptions = Zym_Cache::getBackendOptions('sqlite');
     if (isset($sqliteOptions['cache_db_complete_path'])) {
         $sqliteOptions['cache_db_complete_path'] = $app->getPath(Zym_App::PATH_TEMP, $sqliteOptions['cache_db_complete_path']);
     }
     Zym_Cache::setBackendOptions('sqlite', $sqliteOptions);
 }