Remove old code.

This commit is contained in:
Toby Zerner 2015-06-08 14:57:05 +09:30
parent e7f2e62cec
commit b28bf04e5a

View File

@ -83,12 +83,9 @@ class AssetManager
foreach ($this->files[$type] as $file) { foreach ($this->files[$type] as $file) {
$lastModTime = max($lastModTime, filemtime($file)); $lastModTime = max($lastModTime, filemtime($file));
} }
$debug = 0;
// $debug = 1;
if (! file_exists($file = $dir.'/'.$this->name.'-'.$revision.'.'.$type) if (! file_exists($file = $dir.'/'.$this->name.'-'.$revision.'.'.$type)
|| filemtime($file) < $lastModTime || filemtime($file) < $lastModTime) {
|| $debug) {
$this->storage->put($file, $callback()); $this->storage->put($file, $callback());
} }