Index: trunk/phase3/includes/cache/FileCacheBase.php |
— | — | @@ -116,9 +116,12 @@ |
117 | 117 | * @return string |
118 | 118 | */ |
119 | 119 | public function fetchText() { |
120 | | - // gzopen can transparently read from gziped or plain text |
121 | | - $fh = gzopen( $this->cachePath(), 'rb' ); |
122 | | - return stream_get_contents( $fh ); |
| 120 | + if( $this->useGzip() ) { |
| 121 | + $fh = gzopen( $this->cachePath(), 'rb' ); |
| 122 | + return stream_get_contents( $fh ); |
| 123 | + } else { |
| 124 | + return file_get_contents( $this-cachePath() ); |
| 125 | + } |
123 | 126 | } |
124 | 127 | |
125 | 128 | /** |