public function makeCache($fileName, $hash, $callable) { $variations = 1; if (N2Filesystem::existsFile($this->getManifestFilePath('variations'))) { $variations = intval(N2Filesystem::readFile($this->getManifestFilePath('variations'))); } return parent::makeCache($fileName . mt_rand(1, $variations), $hash, $callable); }
public function getAssetFile($group, &$files = array(), &$codes = array()) { $this->group = $group; $this->files = $files; $this->codes = $codes; $cache = new N2CacheManifest($group, true, true); $hash = $this->getHash(); return $cache->makeCache($group . "." . $this->outputFileType, $hash, array($this, 'getCachedContent')); }