Exemplo n.º 1
0
 /**
  * 
  * Checks to make sure the EAccelerator extension is available.
  * 
  * @return void
  * 
  */
 protected function _preConfig()
 {
     parent::_preConfig();
     if (!(extension_loaded('eaccelerator') && ini_get('eaccelerator.enable'))) {
         throw $this->_exception('ERR_EXTENSION_NOT_LOADED', array('extension' => 'eaccelerator'));
     }
 }
Exemplo n.º 2
0
 /**
  * 
  * Checks to make sure the memcache extension is available.
  * 
  * @return void
  * 
  */
 protected function _preConfig()
 {
     parent::_preConfig();
     if (!extension_loaded('memcache')) {
         throw $this->_exception('ERR_EXTENSION_NOT_LOADED', array('extension' => 'memcache'));
     }
 }
Exemplo n.º 3
0
 /**
  * 
  * Sets the default cache directory location.
  * 
  * @return void
  * 
  */
 protected function _preConfig()
 {
     parent::_preConfig();
     $tmp = Solar_Dir::tmp('/Solar_Cache_File/');
     $this->_Solar_Cache_Adapter_File['path'] = $tmp;
 }