Active Record 缓存与数据库缓存 什么区别
手册中提供了两种数据库缓存。他们的区别在哪里??
1.
$this->db->cache_on();
$query = $this->db->query("SELECT * FROM e_admin");
$this->db->cache_off();
2.
$this->db->start_cache()
$query = $this->db->query("SELECT * FROM e_admin");
$this->db->stop_cache()
从效率和功能使用是一样吗?
目测一样的,都是根据sql的hash来的 jeongee 发表于 2013-1-21 16:00 static/image/common/back.gif
目测一样的,都是根据sql的hash来的
$this->db->cache_on()如果不设时间的话,默认多长时间缓存过期? 顶上去。我也想知道!
页:
[1]