コード例 #1
0
 /**
  * @param $options
  */
 public function __construct($options)
 {
     parent::__construct($options);
     $conf = JFactory::getConfig();
     $generator_state_options = array('cachebase' => $conf->get('cache_path', JPATH_CACHE), 'lifetime' => self::GENERATOR_STATE_TIMEOUT, 'storage' => $conf->get('cache_handler', 'file'), 'defaultgroup' => self::CACHE_GROUP, 'locking' => true, 'locktime' => 15, 'checkTime' => true, 'caching' => true);
     $this->generator_state_cache = new JCache($generator_state_options);
     $file_info_options = array('cachebase' => $conf->get('cache_path', JPATH_CACHE), 'storage' => $conf->get('cache_handler', 'file'), 'defaultgroup' => self::CACHE_GROUP, 'locking' => true, 'locktime' => 15, 'checkTime' => false, 'caching' => true);
     $this->file_info_cache = new JCache($file_info_options);
 }