public function __construct(RokBooster_Compressor_IGroup $group, $options, $wrapped = true)
 {
     parent::__construct($group, $options);
     $config = JFactory::getConfig();
     $hash = md5($config->get('secret') . serialize($this->options));
     $this->cache_entry_id = $hash . '-rokbooster-dataentry-' . $this->group->getChecksum();
 }
Beispiel #2
0
 public function __construct(RokBooster_Compressor_IGroup $group, $options, $wrapped = true)
 {
     parent::__construct($group, $options, $wrapped);
     if ($wrapped) {
         $this->datafile_name = md5(serialize($this->options) . '-' . $this->group->getChecksum()) . self::DATA_FILE_EXTENSION;
         $this->datafile_path = preg_replace('#[/\\\\]+#', DIRECTORY_SEPARATOR, $this->options->cache_path) . DIRECTORY_SEPARATOR . $this->datafile_name;
     } else {
         $this->datafile_name = $this->wrapper_file_name;
         $this->datafile_path = $this->wrapper_file_path;
     }
 }