|
@@ 2237-2240 (lines=4) @@
|
| 2234 |
|
$pcache=$this->store->get_filestore("privatecache"); |
| 2235 |
|
$pcache->write($image, $this->id, $file); |
| 2236 |
|
$time=time()+($time*3600); |
| 2237 |
|
if (!$pcache->touch($this->id, $file, $time)) { |
| 2238 |
|
$this->error = ar::error("savecache: ERROR: couldn't touch $file", 1113); |
| 2239 |
|
$result = false; |
| 2240 |
|
} |
| 2241 |
|
} |
| 2242 |
|
ob_end_clean(); |
| 2243 |
|
echo $origimage; |
|
@@ 2289-2292 (lines=4) @@
|
| 2286 |
|
if( $time > 0 && $DB["wasUsed"] == 0) { |
| 2287 |
|
$pcache->write(serialize($data), $this->id, $name); |
| 2288 |
|
$time=time()+($time*3600); |
| 2289 |
|
if (!$pcache->touch($this->id, $name, $time)) { |
| 2290 |
|
$this->error = ar::error('Could not touch '.$name, 1113); |
| 2291 |
|
return false; |
| 2292 |
|
} |
| 2293 |
|
} |
| 2294 |
|
return true; |
| 2295 |
|
} |