+ [refac] clear cache when redis database changed.

This commit is contained in:
liugang
2024-11-20 15:42:49 +08:00
committed by 朱金勇
parent eb251860ba
commit 5aefa58096
+1
View File
@@ -74,6 +74,7 @@ class cache extends control
if($cache->enable != $this->config->cache->enable
|| $cache->driver != $this->config->cache->driver
|| $cache->namespace != $this->config->cache->namespace
|| $redis->database != $this->config->redis->database
|| $redis->serializer != $this->config->redis->serializer)
{
$this->mao->clear();