| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 80 | public static function setNewCacheFile($file, $data, $time) |
||
| 81 | { |
||
| 82 | if($file) unlink(__DIR__ .'/cache/'.$file); |
||
| 83 | |||
| 84 | $current_time = time(); |
||
| 85 | $new_time = $current_time + $time*60; |
||
| 86 | |||
| 87 | $file_name = $new_time.".txt"; |
||
| 88 | file_put_contents(__DIR__ .'/cache/'.$file_name, $data); |
||
| 89 | |||
| 90 | return true; |
||
| 91 | } |
||
| 105 |