public function minify($returnContent = true, $forceCacheUpdate = false) { // autoloading files foreach (Tools::cleanScandir($this->getPath()) as $file) { if (Validate::isFileExtension($this->_type, $file)) { $this->addFile($this->getPath() . $file); } } $this->_key = md5($this->_name . Router::getHost(true, Http::isHttps()) . $this->getPath()); if ($this->_cacheExpired() || $forceCacheUpdate) { $this->_generateCache(); } if ($returnContent) { return $this->getContent(); } }