| @@ 93-95 (lines=3) @@ | ||
| 90 | */ |
|
| 91 | public function enableDirectWrite() |
|
| 92 | { |
|
| 93 | if ($this->isLazyWrite && $this->cache->length() > 0) { |
|
| 94 | $this->writeLog(implode("", $this->cache->get())); |
|
| 95 | } |
|
| 96 | ||
| 97 | $this->isLazyWrite = false; |
|
| 98 | $this->cache = null; |
|
| @@ 122-124 (lines=3) @@ | ||
| 119 | */ |
|
| 120 | private function flush() |
|
| 121 | { |
|
| 122 | if ($this->isLazyWrite && $this->cache->length() > 0) { |
|
| 123 | $this->writeLog(implode("", $this->cache->get())); |
|
| 124 | } |
|
| 125 | } |
|
| 126 | ||
| 127 | /** |
|