From 9b5a12478cbb9d76b302a86d5110564ef2e7a96b Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 20 Jul 2022 12:00:20 +0900 Subject: [PATCH] refactor: initialize static::$cacheTTL --- system/CodeIgniter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/CodeIgniter.php b/system/CodeIgniter.php index 4504307b6c..c6f06d8810 100644 --- a/system/CodeIgniter.php +++ b/system/CodeIgniter.php @@ -307,6 +307,8 @@ class CodeIgniter throw new LogicException('Context must be set before run() is called. If you are upgrading from 4.1.x, you need to merge `public/index.php` and `spark` file from `vendor/codeigniter4/framework`.'); } + static::$cacheTTL = 0; + $this->startBenchmark(); $this->getRequestObject();