|
@@ 2302-2305 (lines=4) @@
|
| 2299 |
|
$pcache=$this->store->get_filestore("privatecache"); |
| 2300 |
|
$pcache->write($image, $this->id, $file); |
| 2301 |
|
$time=time()+($time*3600); |
| 2302 |
|
if (!$pcache->touch($this->id, $file, $time)) { |
| 2303 |
|
$this->error = ar::error("savecache: ERROR: couldn't touch $file", 1113); |
| 2304 |
|
$result = false; |
| 2305 |
|
} |
| 2306 |
|
} |
| 2307 |
|
ob_end_clean(); |
| 2308 |
|
echo $image; |
|
@@ 2354-2357 (lines=4) @@
|
| 2351 |
|
if( $time > 0 && $DB["wasUsed"] == 0) { |
| 2352 |
|
$pcache->write(serialize($data), $this->id, $name); |
| 2353 |
|
$time=time()+($time*3600); |
| 2354 |
|
if (!$pcache->touch($this->id, $name, $time)) { |
| 2355 |
|
$this->error = ar::error('Could not touch '.$name, 1113); |
| 2356 |
|
return false; |
| 2357 |
|
} |
| 2358 |
|
} |
| 2359 |
|
return true; |
| 2360 |
|
} |