From 3dbe0f80baf76363bc899dc8059e2762f0126d57 Mon Sep 17 00:00:00 2001 From: liugang Date: Thu, 13 Jun 2024 08:54:45 +0800 Subject: [PATCH] * [misc] prefix the cache key with the database name to prevent cache conflicts. --- lib/base/dao/dao.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/dao/dao.class.php b/lib/base/dao/dao.class.php index e1b60ebc96..2b5f36259c 100644 --- a/lib/base/dao/dao.class.php +++ b/lib/base/dao/dao.class.php @@ -203,7 +203,7 @@ class baseDAO $app->loadClass('cache', true); try { - $this->cache = new cache($config->cache->dao->driver, 'dao-', $config->cache->dao->lifetime); + $this->cache = new cache($config->cache->dao->driver, $config->db->name . '-dao-', $config->cache->dao->lifetime); } catch (Exception $e) {