+ baseDAO: load dao cache.

This commit is contained in:
liugang
2024-05-17 11:14:58 +08:00
parent 02fd3753ad
commit 9d866a7810
+6
View File
@@ -189,6 +189,12 @@ class baseDAO
$this->dbh = $dbh;
$this->slaveDBH = $slaveDBH ? $slaveDBH : false;
if($config->cache->dao->enable)
{
$app->loadClass('cache', true);
$this->cache = new cache($config->cache->dao->driver, 'dao', $config->cache->dao->lifetime);
}
$this->reset();
}