提交 f66f51a9 编写于 作者: 李光春's avatar 李光春

- 优化缓存数据库驱动

上级 0532cc89
......@@ -86,6 +86,7 @@ class Mysql
if (empty($this->cache_name)) throw new CacheException("名称未配置");
$cache = Db::table($this->table)
->where('cache_name', $this->cache_name)
->order('id desc')
->field('cache_expire,cache_value')
->find();
if (empty($cache['cache_expire'])) return $cache['cache_value'];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册