* [refac] rename redis to cache.

This commit is contained in:
liugang
2024-11-20 15:42:49 +08:00
committed by 朱金勇
parent 6ca5416baa
commit 61c1ad11ba
+1 -1
View File
@@ -464,7 +464,7 @@ class cache
if(!$this->config->debug) return false;
$runMode = PHP_SAPI == 'cli' ? '_cli' : '';
$logFile = $this->app->getLogRoot() . 'redis' . $runMode . '.' . date('Ymd') . '.log.php';
$logFile = $this->app->getLogRoot() . 'cache' . $runMode . '.' . date('Ymd') . '.log.php';
if(!file_exists($logFile)) file_put_contents($logFile, '<?php die(); ?' . ">\n");
$content = date('Ymd H:i:s') . ': ' . $this->getURI() . "\nError: {$message} in $file on line $line\n";