Php octobercms数据库查询缓存不工作
在我的一个页面中,我执行了如下的数据库查询Php octobercms数据库查询缓存不工作,php,mysql,caching,octobercms,Php,Mysql,Caching,Octobercms,在我的一个页面中,我执行了如下的数据库查询 function onStart() { $this['numz'] = Db::table('backend_users')->select('id')->count(); } 这就像预期的那样工作,并返回一个可以在页面中使用的值 There are a total of {{ numz }} ppl. 现在根据,我们应该能够做到 function onStart() { $this['numz'] = Db::tab
function onStart()
{
$this['numz'] = Db::table('backend_users')->select('id')->count();
}
这就像预期的那样工作,并返回一个可以在页面中使用的值
There are a total of {{ numz }} ppl.
现在根据,我们应该能够做到
function onStart()
{
$this['numz'] = Db::table('backend_users')->select('id')->remember(10)->count();
}
然而,每当我尝试这一点,我得到以下错误
调用undefined方法Illumb\Database\Query\Builder::remember()
知道问题是什么吗?这是一个bug吗?这是一个bug,现已在build 398+中修复