* framework: enable cache if the mode is running.

This commit is contained in:
liugang
2024-05-23 10:59:46 +08:00
parent f75a5b0d1d
commit 6fa2ca8627
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1064,7 +1064,7 @@ class baseControl
*/
public function setResponseHeader()
{
if($this->config->cache->client->enable && $this->app->useClientCache)
if($this->app->isServing() && $this->config->cache->client->enable && $this->app->useClientCache)
{
helper::setStatus(304);
helper::end();
+1 -1
View File
@@ -485,7 +485,7 @@ class baseRouter
$this->setClient();
$this->loadCacheConfig();
if($mode == 'running') $this->loadCacheConfig();
}
/**