diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-02 19:02:27 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-03-02 19:02:27 +0000 |
commit | 25bf95704e0ead1005057c5739b1a26025f3602c (patch) | |
tree | 2b5e6b5ae45d90cdf3d1b807aa7d093a685b722b /engine | |
parent | 34516b2c1128d9eff00310a49fd02116159b94e6 (diff) | |
download | elgg-25bf95704e0ead1005057c5739b1a26025f3602c.tar.gz elgg-25bf95704e0ead1005057c5739b1a26025f3602c.tar.bz2 |
Limitless queries now supported
git-svn-id: https://code.elgg.org/elgg/trunk@3021 36083f99-b078-4883-b0ff-0f9b5a30f544
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; |