From 25bf95704e0ead1005057c5739b1a26025f3602c Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 2 Mar 2009 19:02:27 +0000 Subject: Limitless queries now supported git-svn-id: https://code.elgg.org/elgg/trunk@3021 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/cache.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/lib') 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; -- cgit v1.2.3