diff options
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/cache.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/cache.php b/engine/lib/cache.php index 191c7c004..8932f4ca7 100644 --- a/engine/lib/cache.php +++ b/engine/lib/cache.php @@ -368,8 +368,10 @@ $f = $this->create_file($this->sanitise_filename($key)); if ($f) { - fseek($f, $offset); + //fseek($f, $offset); + if (!$limit) $limit = -1; $data = stream_get_contents($f, $limit, $offset); + fclose($f); return $data; |