|
@@ 52-56 (lines=5) @@
|
| 49 |
|
$phpcode = str_replace(array('%%CONTENT%%','exit;'),array($mime,''),$phpcode); |
| 50 |
|
file_put_contents($this->cachedir.$this->filename,$phpcode, LOCK_EX); |
| 51 |
|
file_put_contents($this->cachedir.$this->filename.'.none',$code, LOCK_EX); |
| 52 |
|
if(!$this->delayed) { |
| 53 |
|
// Compress now! |
| 54 |
|
file_put_contents($this->cachedir.$this->filename.'.deflate',gzencode($code,9,FORCE_DEFLATE), LOCK_EX); |
| 55 |
|
file_put_contents($this->cachedir.$this->filename.'.gzip',gzencode($code,9,FORCE_GZIP), LOCK_EX); |
| 56 |
|
} |
| 57 |
|
} else { |
| 58 |
|
// Write code to cache without doing anything else |
| 59 |
|
file_put_contents($this->cachedir.$this->filename,$code, LOCK_EX); |
|
@@ 57-64 (lines=8) @@
|
| 54 |
|
file_put_contents($this->cachedir.$this->filename.'.deflate',gzencode($code,9,FORCE_DEFLATE), LOCK_EX); |
| 55 |
|
file_put_contents($this->cachedir.$this->filename.'.gzip',gzencode($code,9,FORCE_GZIP), LOCK_EX); |
| 56 |
|
} |
| 57 |
|
} else { |
| 58 |
|
// Write code to cache without doing anything else |
| 59 |
|
file_put_contents($this->cachedir.$this->filename,$code, LOCK_EX); |
| 60 |
|
if (apply_filters('autoptimize_filter_cache_create_static_gzip', false)) { |
| 61 |
|
// Create an additional cached gzip file |
| 62 |
|
file_put_contents($this->cachedir.$this->filename.'.gz', gzencode($code,9,FORCE_GZIP), LOCK_EX); |
| 63 |
|
} |
| 64 |
|
} |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
public function getname() { |