|
@@ 2308-2311 (lines=4) @@
|
| 2305 |
|
$pcache=$this->store->get_filestore("privatecache"); |
| 2306 |
|
$pcache->write($image, $this->id, $file); |
| 2307 |
|
$time=time()+($time*3600); |
| 2308 |
|
if (!$pcache->touch($this->id, $file, $time)) { |
| 2309 |
|
$this->error = ar::error("savecache: ERROR: couldn't touch $file", 1113); |
| 2310 |
|
$result = false; |
| 2311 |
|
} |
| 2312 |
|
} |
| 2313 |
|
ob_end_clean(); |
| 2314 |
|
echo $image; |
|
@@ 2360-2363 (lines=4) @@
|
| 2357 |
|
if( $time > 0 && $DB["wasUsed"] == 0) { |
| 2358 |
|
$pcache->write(serialize($data), $this->id, $name); |
| 2359 |
|
$time=time()+($time*3600); |
| 2360 |
|
if (!$pcache->touch($this->id, $name, $time)) { |
| 2361 |
|
$this->error = ar::error('Could not touch '.$name, 1113); |
| 2362 |
|
return false; |
| 2363 |
|
} |
| 2364 |
|
} |
| 2365 |
|
return true; |
| 2366 |
|
} |