| @@ 99-104 (lines=6) @@ | ||
| 96 | fclose($fp); |
|
| 97 | ||
| 98 | // if cache not expried return cache file |
|
| 99 | if (time() < $data['expire']) { |
|
| 100 | $this->get++; |
|
| 101 | return $data['cache']; |
|
| 102 | } else { |
|
| 103 | return FALSE; |
|
| 104 | } |
|
| 105 | } |
|
| 106 | ||
| 107 | /** |
|
| @@ 129-134 (lines=6) @@ | ||
| 126 | $data = unserialize(file_get_contents($file)); |
|
| 127 | fclose($fp); |
|
| 128 | ||
| 129 | if (time() < $data['expire']) { |
|
| 130 | $this->get++; |
|
| 131 | return $data['cache']; |
|
| 132 | } else { |
|
| 133 | return FALSE; |
|
| 134 | } |
|
| 135 | } |
|
| 136 | ||
| 137 | /** |
|