Skip to content

Commit

Permalink
改进兼容性
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Dec 10, 2020
1 parent 6cde2f9 commit abfc293
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,11 @@ public function fetch(string $template, array $vars = []): void

// 页面缓存
ob_start();
ob_implicit_flush(false);
if (PHP_VERSION > 8.0) {
ob_implicit_flush(false);
} else {
ob_implicit_flush(0);
}

// 读取编译存储
$this->storage->read($cacheFile, $this->data);
Expand Down

0 comments on commit abfc293

Please sign in to comment.