|
@@ 2245-2248 (lines=4) @@
|
| 2242 |
|
$pcache=$this->store->get_filestore("privatecache"); |
| 2243 |
|
$pcache->write($image, $this->id, $file); |
| 2244 |
|
$time=time()+($time*3600); |
| 2245 |
|
if (!$pcache->touch($this->id, $file, $time)) { |
| 2246 |
|
$this->error = ar::error("savecache: ERROR: couldn't touch $file", 1113); |
| 2247 |
|
$result = false; |
| 2248 |
|
} |
| 2249 |
|
} |
| 2250 |
|
ob_end_clean(); |
| 2251 |
|
echo $origimage; |
|
@@ 2297-2300 (lines=4) @@
|
| 2294 |
|
if( $time > 0 && $DB["wasUsed"] == 0) { |
| 2295 |
|
$pcache->write(serialize($data), $this->id, $name); |
| 2296 |
|
$time=time()+($time*3600); |
| 2297 |
|
if (!$pcache->touch($this->id, $name, $time)) { |
| 2298 |
|
$this->error = ar::error('Could not touch '.$name, 1113); |
| 2299 |
|
return false; |
| 2300 |
|
} |
| 2301 |
|
} |
| 2302 |
|
return true; |
| 2303 |
|
} |