* [misc] prefix the cache key with the database name to prevent cache conflicts.

This commit is contained in:
liugang
2024-06-13 01:02:02 +00:00
committed by 王于听
parent 534bf9ff2e
commit 3dbe0f80ba
+1 -1
View File
@@ -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)
{